thumnails for youtube-videos was not added when doing this..

This commit is contained in:
Hannes Mannerheim 2015-06-15 17:58:47 +02:00
parent ca32b42165
commit 4610d596d9

View File

@ -423,9 +423,7 @@ class QvitterPlugin extends Plugin {
$enclosure_o = $attachment->getEnclosure(); $enclosure_o = $attachment->getEnclosure();
$thumb = $attachment->getThumbnail(); $thumb = $attachment->getThumbnail();
$attachment_url_to_id[$enclosure_o->url]['id'] = $attachment->id; $attachment_url_to_id[$enclosure_o->url]['id'] = $attachment->id;
if($attachment->width > 1000) { $attachment_url_to_id[$enclosure_o->url]['thumb_url'] = $thumb->getUrl();
$attachment_url_to_id[$enclosure_o->url]['thumb_url'] = $thumb->getUrl();
}
$attachment_url_to_id[$enclosure_o->url]['width'] = $attachment->width; $attachment_url_to_id[$enclosure_o->url]['width'] = $attachment->width;
$attachment_url_to_id[$enclosure_o->url]['height'] = $attachment->height; $attachment_url_to_id[$enclosure_o->url]['height'] = $attachment->height;
} catch (ServerException $e) { } catch (ServerException $e) {