]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/attachmentlist.php
think I have managed to show oEmbed images better now
[quix0rs-gnu-social.git] / lib / attachmentlist.php
index dcae917be36c17c8b0180d9d6982203601ba3016..4d4b4511672aa0167697df58727a81a07533ce6d 100644 (file)
@@ -76,8 +76,8 @@ class AttachmentList extends Widget
     {
        $attachments = $this->notice->attachments();
         foreach ($attachments as $key=>$att) {
-            // Only show attachments representable with a title
-            if ($att->getTitle() === null) {
+            // Remove attachments which are not representable with neither a title nor thumbnail
+            if ($att->getTitle() === null && !$att->hasThumbnail()) {
                 unset($attachments[$key]);
             }
         }