1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-12 16:58:37 +00:00

Fix validateAndSetPreviewPicture

Which wasn't covered by a test!
This commit is contained in:
Jeremy Benoist 2017-06-30 17:04:40 +02:00
parent a05b61159e
commit d0ec2ddd23
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 36 additions and 4 deletions

View 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'])) {