]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show thumbnails even for links that arent enclosures
authorEvan Prodromou <evan@status.net>
Thu, 21 Apr 2011 20:13:32 +0000 (16:13 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 21 Apr 2011 20:13:32 +0000 (16:13 -0400)
lib/inlineattachmentlist.php

index de5008e87babb796e2ebd8d92b6066e453de901f..a0243c825f673cffcfbf5398555ace1321540a8f 100644 (file)
@@ -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() {