From 5fd08b798f78c83e12e62e3f7009759e0be12213 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 21 Apr 2011 16:13:32 -0400 Subject: [PATCH] show thumbnails even for links that arent enclosures --- lib/inlineattachmentlist.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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() { -- 2.39.5