summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/noticelist.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 3ccb50230..dd0a361c0 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -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));
}
/**