summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-11-16 02:32:46 +0000
committerZach Copley <zach@status.net>2010-11-16 02:32:46 +0000
commitbd566b6f855a19efb1d74eeaa39ab4e621903b12 (patch)
treebefc30688421cc1fc99b1aef7e64d45f08614cd2 /lib/noticelist.php
parentca4c0a160122d20f95877102f9712aee45c7afb8 (diff)
parenteb0495d10719f2be86f8f97e82aaa1b8bf923c7d (diff)
Merge branch '0.9.x' into facebook-upgrade
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r--lib/noticelist.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 6f82c9269..c6f964662 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -208,6 +208,7 @@ class NoticeListItem extends Widget
$this->showStart();
if (Event::handle('StartShowNoticeItem', array($this))) {
$this->showNotice();
+ $this->showNoticeAttachments();
$this->showNoticeInfo();
$this->showNoticeOptions();
Event::handle('EndShowNoticeItem', array($this));
@@ -383,6 +384,13 @@ class NoticeListItem extends Widget
$this->out->elementEnd('p');
}
+ function showNoticeAttachments() {
+ if (common_config('attachments', 'show_thumbs')) {
+ $al = new InlineAttachmentList($this->notice, $this->out);
+ $al->show();
+ }
+ }
+
/**
* show the link to the main page for the notice
*