aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-01-10 21:25:27 +0100
committerGitHub <noreply@github.com>2017-01-10 21:25:27 +0100
commitb4d81c91de537370265c7a09b963cab49af629a8 (patch)
tree44d517cfb60cd24c72c7af8ba2130a3eabfa8cc5 /src
parente4ccd3effe8a5561d71d6c5f7c4bd1b23aa5a45b (diff)
parent1ff2e71c1c488f912b92e47ee261634e8bede4dc (diff)
downloadwallabag-b4d81c91de537370265c7a09b963cab49af629a8.tar.gz
wallabag-b4d81c91de537370265c7a09b963cab49af629a8.tar.zst
wallabag-b4d81c91de537370265c7a09b963cab49af629a8.zip
Merge pull request #2742 from wallabag/fix-og-image-false
Avoid false preview image
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
index 0130bd2b..f222dd88 100644
--- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php
+++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
@@ -88,7 +88,7 @@ class ContentProxy
88 $entry->setDomainName($domainName); 88 $entry->setDomainName($domainName);
89 } 89 }
90 90
91 if (isset($content['open_graph']['og_image'])) { 91 if (isset($content['open_graph']['og_image']) && $content['open_graph']['og_image']) {
92 $entry->setPreviewPicture($content['open_graph']['og_image']); 92 $entry->setPreviewPicture($content['open_graph']['og_image']);
93 } 93 }
94 94