Skip to content

Commit

Permalink
Merge pull request #8 from jedkirby/bugfix-pinterest-images
Browse files Browse the repository at this point in the history
Incorrect key => value for the image.
  • Loading branch information
oscarotero committed Jun 29, 2015
2 parents 3172342 + e81eafd commit d2f736b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Providers/Pinterest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function shareUrl()
array(
'url',
'title' => 'description',
'media' => 'image',
'image' => 'media',
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/BasicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function testProviders(Page $page)
$this->assertEquals($page->mailru->shareUrl, 'http://connect.mail.ru/share?url=http%3A%2F%2Fmypage.com&title=Page+title&description=Extended+page+description&imageurl=http%3A%2F%2Fmypage.com%2Fimage.png');
$this->assertEquals($page->meneame->shareUrl, 'http://meneame.net/submit.php?url=http%3A%2F%2Fmypage.com');
$this->assertEquals($page->odnoklassniki->shareUrl, 'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl=http%3A%2F%2Fmypage.com');
$this->assertEquals($page->pinterest->shareUrl, 'https://www.pinterest.com/pin/create/button/?url=http%3A%2F%2Fmypage.com&description=Page+title');
$this->assertEquals($page->pinterest->shareUrl, 'https://www.pinterest.com/pin/create/button/?url=http%3A%2F%2Fmypage.com&description=Page+title&media=http%3A%2F%2Fmypage.com%2Fimage.png');
$this->assertEquals($page->plus->shareUrl, 'https://plus.google.com/share?url=http%3A%2F%2Fmypage.com');
$this->assertEquals($page->stumbleupon->shareUrl, 'https://www.stumbleupon.com/submit?url=http%3A%2F%2Fmypage.com&title=Page+title');
$this->assertEquals($page->tumblr->shareUrl, 'https://www.tumblr.com/share?v=3&u=http%3A%2F%2Fmypage.com&t=Page+title');
Expand Down

0 comments on commit d2f736b

Please sign in to comment.