aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-06-30 17:04:40 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-07-03 13:45:04 +0200
commitd0ec2ddd2354e39badd947c2214f47193784b1c7 (patch)
tree1684fbea993e7aa0b9343f399e30ed09e927b5bd /src
parenta05b61159e147776f63baee731b5026796e5f7ae (diff)
downloadwallabag-d0ec2ddd2354e39badd947c2214f47193784b1c7.tar.gz
wallabag-d0ec2ddd2354e39badd947c2214f47193784b1c7.tar.zst
wallabag-d0ec2ddd2354e39badd947c2214f47193784b1c7.zip
Fix validateAndSetPreviewPicture
Which wasn't covered by a test!
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
index 2a650e97..5622cc83 100644
--- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php
+++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
@@ -127,10 +127,7 @@ class ContentProxy
127 127
128 // if content is an image, define it as a preview too 128 // if content is an image, define it as a preview too
129 if (!empty($content['content_type']) && in_array($this->mimeGuesser->guess($content['content_type']), ['jpeg', 'jpg', 'gif', 'png'], true)) { 129 if (!empty($content['content_type']) && in_array($this->mimeGuesser->guess($content['content_type']), ['jpeg', 'jpg', 'gif', 'png'], true)) {
130 $this->validateAndSetPreviewPicture( 130 $this->updatePreviewPicture($entry, $content['url']);
131 $entry,
132 $content['url']
133 );
134 } 131 }
135 132
136 if (!empty($content['content_type'])) { 133 if (!empty($content['content_type'])) {