From: Evan Prodromou Date: Thu, 21 Apr 2011 20:13:32 +0000 (-0400) Subject: show thumbnails even for links that arent enclosures X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5fd08b798f78c83e12e62e3f7009759e0be12213;p=quix0rs-gnu-social.git show thumbnails even for links that arent enclosures --- diff --git a/lib/inlineattachmentlist.php b/lib/inlineattachmentlist.php index de5008e87b..a0243c825f 100644 --- a/lib/inlineattachmentlist.php +++ b/lib/inlineattachmentlist.php @@ -58,11 +58,20 @@ class InlineAttachmentList extends AttachmentList class InlineAttachmentListItem extends AttachmentListItem { + protected $thumb; + function show() { - if ($this->attachment->isEnclosure()) { + $this->thumb = parent::getThumbInfo(); + if (!empty($this->thumb)) { parent::show(); } + + } + + function getThumbInfo() + { + return $this->thumb; } function showLink() {