Commit 99dce464 authored by Evan Prodromou's avatar Evan Prodromou

Prefill done by notice stream

parent f6ae47c4
......@@ -82,14 +82,11 @@ abstract class FilteringNoticeStream extends NoticeStream
break;
}
$notices = $raw->fetchAll();
// XXX: this should probably only be in the scoping one.
Notice::fillGroups($notices);
Notice::fillReplies($notices);
foreach ($notices as $notice) {
$notices = $raw->fetchAll();
$this->prefill($notices);
foreach ($notices as $notice) {
if ($this->filter($notice)) {
$filtered[] = $notice;
if (count($filtered) >= $total) {
......@@ -127,4 +124,9 @@ abstract class FilteringNoticeStream extends NoticeStream
return $ids;
}
function prefill($notices)
{
return;
}
}
......@@ -73,4 +73,12 @@ class ScopingNoticeStream extends FilteringNoticeStream
{
return $notice->inScope($this->profile);
}
function prefill($notices)
{
// XXX: this should probably only be in the scoping one.
Notice::fillGroups($notices);
Notice::fillReplies($notices);
}
}
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