]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/inlineattachmentlistitem.php
Merge branch 'cas-user-whitelist' into 'nightly'
[quix0rs-gnu-social.git] / lib / inlineattachmentlistitem.php
index 10b9db202b8812e36f3e11c753d5104778ee5385..5c918bb86e6a295f23b6bb83b12ce03b373800d3 100644 (file)
@@ -31,11 +31,6 @@ if (!defined('GNUSOCIAL')) { exit(1); }
 
 class InlineAttachmentListItem extends AttachmentListItem
 {
-    function showLink() {
-        $this->out->element('a', $this->linkAttr(), $this->title());
-        $this->showRepresentation();
-    }
-
     /**
      * start a single notice.
      *
@@ -45,7 +40,10 @@ class InlineAttachmentListItem extends AttachmentListItem
     {
         // XXX: RDFa
         // TODO: add notice_type class e.g., notice_video, notice_image
-        $this->out->elementStart('li', array('class' => 'inline-attachment'));
+        $this->out->elementStart('li',
+                    array('class' => 'inline-attachment',
+                          'id' => 'attachment-' . $this->attachment->getID(),
+                ));
     }
 
     /**