Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
[Fixed] Fixed a regression that would cause Twitter and Facebook imag…
Browse files Browse the repository at this point in the history
…es to not show up
  • Loading branch information
Andrew Welch committed Sep 6, 2016
1 parent e3a01e3 commit 4e2cb11
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ Some things to do, and ideas for potential features:

## Changelog

### 1.1.35 -- 2016.09.06

* [Fixed] Fixed a regression that would cause Twitter and Facebook images to not show up
* [Improved] Updated the README.md

### 1.1.34 -- 2016.09.05

* [Added] Added the ability to set separate images for Twitter Cards and Facebook OpenGraph images
Expand Down
2 changes: 1 addition & 1 deletion SeomaticPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getReleaseFeedUrl()

public function getVersion()
{
return '1.1.34';
return '1.1.35';
}

public function getSchemaVersion()
Expand Down
9 changes: 9 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
[
{
"version": "1.1.35",
"downloadUrl": "https://github.com/nystudio107/seomatic/archive/master.zip",
"date": "2016-09-06T11:00:00-11:00",
"notes": [
"[Fixed] Fixed a regression that would cause Twitter and Facebook images to not show up",
"[Improved] Updated the README.md"
]
},
{
"version": "1.1.34",
"downloadUrl": "https://github.com/nystudio107/seomatic/archive/master.zip",
Expand Down
4 changes: 2 additions & 2 deletions services/SeomaticService.php
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ public function setSocialForMeta(&$meta, $siteMeta, $social, $helper, $identity,
$imgId = 0;
if (isset($meta['seoImageId']))
$imgId = $meta['seoImageId'];
if (isset($meta['seoTwitterImageId']))
if (isset($meta['seoTwitterImageId']) && $meta['seoTwitterImageId'] != 0)
$imgId = $meta['seoTwitterImageId'];
if ($imgId)
{
Expand Down Expand Up @@ -858,7 +858,7 @@ public function setSocialForMeta(&$meta, $siteMeta, $social, $helper, $identity,
$imgId = 0;
if (isset($meta['seoImageId']))
$imgId = $meta['seoImageId'];
if (isset($meta['seoFacebookImageId']))
if (isset($meta['seoFacebookImageId']) && $meta['seoFacebookImageId'] != 0)
$imgId = $meta['seoFacebookImageId'];
if ($imgId)
{
Expand Down

0 comments on commit 4e2cb11

Please sign in to comment.