Commit 3b456b4f authored by Brion Vibber's avatar Brion Vibber

Paging fix for threaded notice lists

parent e89bffc3
......@@ -69,6 +69,12 @@ class ThreadedNoticeList extends NoticeList
$cnt = 0;
$conversations = array();
while ($this->notice->fetch() && $cnt <= NOTICES_PER_PAGE) {
$cnt++;
if ($cnt > NOTICES_PER_PAGE) {
break;
}
$convo = $this->notice->conversation;
if (!empty($conversations[$convo])) {
// Seen this convo already -- skip!
......@@ -86,12 +92,6 @@ class ThreadedNoticeList extends NoticeList
$notice->limit(1);
$notice->find(true);
$cnt++;
if ($cnt > NOTICES_PER_PAGE) {
break;
}
try {
$item = $this->newListItem($notice);
$item->show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment