]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/attachmentlist.php
use Notice::attachments() to get attachments for a notice
[quix0rs-gnu-social.git] / lib / attachmentlist.php
index cf7c9acc147fe8ab24ddc0c525f5b6c5a43fff16..a93a6842bbe32648c009f735a0fab7d325bbf5f6 100644 (file)
@@ -76,7 +76,7 @@ class AttachmentList extends Widget
      */
     function show()
     {
-        $att = File::getAttachments($this->notice->id);
+       $att = $this->notice->attachments();
         if (empty($att)) return 0;
         $this->showListStart();