// Do a bulk lookup for the first $limit items
// Fast path when nothing's deleted.
$firstChunk = array_slice($ids, 0, $offset + $limit);
- $notices = Notice::getStreamByIds($firstChunk);
+ $notices = NoticeStream::getStreamByIds($firstChunk);
assert($notices instanceof ArrayWrapper);
$items = $notices->_items;
// Do a bulk lookup for the first $limit items
// Fast path when nothing's deleted.
$firstChunk = array_slice($ids, 0, $limit);
- $notices = Notice::getStreamByIds($firstChunk);
+ $notices = NoticeStream::getStreamByIds($firstChunk);
$wanted = count($firstChunk); // raw entry count in the inbox up to our $limit
if ($notices->N >= $wanted) {
{
$ids = $this->getNoticeIds($offset, $limit, $sinceId, $maxId);
- $notices = $this->getStreamByIds($ids);
+ $notices = self::getStreamByIds($ids);
return $notices;
}
return $ids;
}
- function getStreamByIds($ids)
+ static function getStreamByIds($ids)
{
$cache = Cache::instance();