]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Helper/ContentProxy.php
Fix validateAndSetPreviewPicture
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Helper / ContentProxy.php
index 2a650e9711604261fbfe74d7a56b6cf22efe515a..5622cc83a4732f3b194334e3670715ce0d1c9e0d 100644 (file)
@@ -127,10 +127,7 @@ class ContentProxy
 
         // if content is an image, define it as a preview too
         if (!empty($content['content_type']) && in_array($this->mimeGuesser->guess($content['content_type']), ['jpeg', 'jpg', 'gif', 'png'], true)) {
-            $this->validateAndSetPreviewPicture(
-                $entry,
-                $content['url']
-            );
+            $this->updatePreviewPicture($entry, $content['url']);
         }
 
         if (!empty($content['content_type'])) {