]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make sure id of <li> in notice list is unique
authorEvan Prodromou <evan@status.net>
Mon, 14 Dec 2009 22:48:14 +0000 (17:48 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 14 Dec 2009 22:48:14 +0000 (17:48 -0500)
lib/noticelist.php

index 3ccb502306cd352ce8de840f98e253b8b8d3629d..dd0a361c0c4e44d9a81bc50ac519407800451d60 100644 (file)
@@ -243,8 +243,9 @@ class NoticeListItem extends Widget
     {
         // XXX: RDFa
         // TODO: add notice_type class e.g., notice_video, notice_image
+        $id = (empty($this->repeat)) ? $this->notice->id : $this->repeat->id;
         $this->out->elementStart('li', array('class' => 'hentry notice',
-                                             'id' => 'notice-' . $this->notice->id));
+                                             'id' => 'notice-' . $id));
     }
 
     /**