Prefill done by notice stream

This commit is contained in:
Evan Prodromou 2012-03-21 12:10:54 -04:00
parent dcbcd4731c
commit 0238aa9d19
2 changed files with 18 additions and 8 deletions

View File

@ -84,10 +84,7 @@ abstract class FilteringNoticeStream extends NoticeStream
$notices = $raw->fetchAll();
// XXX: this should probably only be in the scoping one.
Notice::fillGroups($notices);
Notice::fillReplies($notices);
$this->prefill($notices);
foreach ($notices as $notice) {
if ($this->filter($notice)) {
@ -127,4 +124,9 @@ abstract class FilteringNoticeStream extends NoticeStream
return $ids;
}
function prefill($notices)
{
return;
}
}

View File

@ -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);
}
}