mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 17:41:01 +00:00
CS
This commit is contained in:
parent
0d349ea670
commit
be54dfe4e6
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ class ContentProxy
|
||||||
{
|
{
|
||||||
protected $graby;
|
protected $graby;
|
||||||
protected $tagger;
|
protected $tagger;
|
||||||
|
protected $validator;
|
||||||
protected $logger;
|
protected $logger;
|
||||||
protected $mimeGuesser;
|
protected $mimeGuesser;
|
||||||
protected $fetchingErrorMessage;
|
protected $fetchingErrorMessage;
|
||||||
|
@ -127,7 +128,7 @@ class ContentProxy
|
||||||
isset($content['open_graph']['og_image']) ? $content['open_graph']['og_image'] : ''
|
isset($content['open_graph']['og_image']) ? $content['open_graph']['og_image'] : ''
|
||||||
);
|
);
|
||||||
|
|
||||||
// if content is an image define as a preview too
|
// 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)) {
|
if (!empty($content['content_type']) && in_array($this->mimeGuesser->guess($content['content_type']), ['jpeg', 'jpg', 'gif', 'png'], true)) {
|
||||||
$this->validateAndSetPreviewPicture(
|
$this->validateAndSetPreviewPicture(
|
||||||
$entry,
|
$entry,
|
||||||
|
|
Loading…
Reference in a new issue