X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fattachmentlistitem.php;h=93dc4ca95e8840c3d9f4cb96d718400a9023a2fe;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=8d63afb7dceaf84ce5413a60967895d174ce2c2c;hpb=ffcdd14940e0a10a40b292378ccabf51d4a04cff;p=quix0rs-gnu-social.git diff --git a/lib/attachmentlistitem.php b/lib/attachmentlistitem.php index 8d63afb7dc..93dc4ca95e 100644 --- a/lib/attachmentlistitem.php +++ b/lib/attachmentlistitem.php @@ -120,7 +120,7 @@ class AttachmentListItem extends Widget try { // Tell getThumbnail that we can show an animated image if it has one (4th arg, "force_still") $thumb = $this->attachment->getThumbnail(null, null, false, false); - $this->out->element('img', array('class'=>'u-photo', 'src' => $thumb->getUrl(), 'alt' => '')); + $this->out->element('img', $thumb->getHtmlAttrs(['class'=>'u-photo', 'alt' => ''])); } catch (UseFileAsThumbnailException $e) { $this->out->element('img', array('class'=>'u-photo', 'src' => $e->file->getUrl(), 'alt' => $e->file->title)); } catch (UnsupportedMediaException $e) {