{
protected $graby;
protected $tagger;
+ protected $validator;
protected $logger;
protected $mimeGuesser;
protected $fetchingErrorMessage;
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)) {
$this->validateAndSetPreviewPicture(
$entry,