aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-06-08 21:56:20 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-08 21:56:20 +0200
commitbe54dfe4e67b90bf6d94139fe968584871ca0f59 (patch)
tree85e90ddcceb6fb03d4c1ec6a984f3d44cb1256f7
parent0d349ea67073c535e1aa7f19f3cf842a54458bfe (diff)
downloadwallabag-be54dfe4e67b90bf6d94139fe968584871ca0f59.tar.gz
wallabag-be54dfe4e67b90bf6d94139fe968584871ca0f59.tar.zst
wallabag-be54dfe4e67b90bf6d94139fe968584871ca0f59.zip
CS
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
index dd9170ad..f752d37e 100644
--- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php
+++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
@@ -19,6 +19,7 @@ class ContentProxy
19{ 19{
20 protected $graby; 20 protected $graby;
21 protected $tagger; 21 protected $tagger;
22 protected $validator;
22 protected $logger; 23 protected $logger;
23 protected $mimeGuesser; 24 protected $mimeGuesser;
24 protected $fetchingErrorMessage; 25 protected $fetchingErrorMessage;
@@ -127,7 +128,7 @@ class ContentProxy
127 isset($content['open_graph']['og_image']) ? $content['open_graph']['og_image'] : '' 128 isset($content['open_graph']['og_image']) ? $content['open_graph']['og_image'] : ''
128 ); 129 );
129 130
130 // if content is an image define as a preview too 131 // if content is an image, define it as a preview too
131 if (!empty($content['content_type']) && in_array($this->mimeGuesser->guess($content['content_type']), ['jpeg', 'jpg', 'gif', 'png'], true)) { 132 if (!empty($content['content_type']) && in_array($this->mimeGuesser->guess($content['content_type']), ['jpeg', 'jpg', 'gif', 'png'], true)) {
132 $this->validateAndSetPreviewPicture( 133 $this->validateAndSetPreviewPicture(
133 $entry, 134 $entry,