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:
parent
a05b61159e
commit
d0ec2ddd23
2 changed files with 36 additions and 4 deletions
|
@ -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'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue