Prefill done by notice stream
This commit is contained in:
parent
dcbcd4731c
commit
0238aa9d19
@ -82,14 +82,11 @@ abstract class FilteringNoticeStream extends NoticeStream
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$notices = $raw->fetchAll();
|
$notices = $raw->fetchAll();
|
||||||
|
|
||||||
// XXX: this should probably only be in the scoping one.
|
$this->prefill($notices);
|
||||||
|
|
||||||
Notice::fillGroups($notices);
|
foreach ($notices as $notice) {
|
||||||
Notice::fillReplies($notices);
|
|
||||||
|
|
||||||
foreach ($notices as $notice) {
|
|
||||||
if ($this->filter($notice)) {
|
if ($this->filter($notice)) {
|
||||||
$filtered[] = $notice;
|
$filtered[] = $notice;
|
||||||
if (count($filtered) >= $total) {
|
if (count($filtered) >= $total) {
|
||||||
@ -127,4 +124,9 @@ abstract class FilteringNoticeStream extends NoticeStream
|
|||||||
|
|
||||||
return $ids;
|
return $ids;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function prefill($notices)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,4 +73,12 @@ class ScopingNoticeStream extends FilteringNoticeStream
|
|||||||
{
|
{
|
||||||
return $notice->inScope($this->profile);
|
return $notice->inScope($this->profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function prefill($notices)
|
||||||
|
{
|
||||||
|
// XXX: this should probably only be in the scoping one.
|
||||||
|
|
||||||
|
Notice::fillGroups($notices);
|
||||||
|
Notice::fillReplies($notices);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user