]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add a quick config setting to disable/enable display of thumbnails in regular notice...
authorBrion Vibber <brion@status.net>
Fri, 12 Nov 2010 20:24:55 +0000 (12:24 -0800)
committerBrion Vibber <brion@status.net>
Fri, 12 Nov 2010 20:24:55 +0000 (12:24 -0800)
lib/default.php
lib/noticelist.php

index 87f4e45c0e27ff2e8a16f956e294b9191071356d..ece01f2a8b5189912b2ac3eb11af3fbce9dbc7b2 100644 (file)
@@ -250,6 +250,7 @@ $default =
               'monthly_quota' => 15000000,
               'uploads' => true,
               'filecommand' => '/usr/bin/file',
+              'show_thumbs' => true, // show thumbnails in notice lists for uploaded images, and photos and videos linked remotely that provide oEmbed info
               'thumb_width' => 100,
               'thumb_height' => 75,
               ),
index d2ac7ed84a59c90c754b09f68601587a4e154086..c6f964662fe73285793d0b782e9f7359b2db512b 100644 (file)
@@ -385,8 +385,10 @@ class NoticeListItem extends Widget
     }
 
     function showNoticeAttachments() {
-        $al = new InlineAttachmentList($this->notice, $this->out);
-        $al->show();
+        if (common_config('attachments', 'show_thumbs')) {
+            $al = new InlineAttachmentList($this->notice, $this->out);
+            $al->show();
+        }
     }
 
     /**