forked from wallabag/wallabag
Fix validateAndSetPreviewPicture
Which wasn't covered by a test!
This commit is contained in:
@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user