We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 0692d9c0 authored by Evan Prodromou's avatar Evan Prodromou

use new stream class rather than old Notice::publicStream()

parent 3fbcba40
......@@ -258,14 +258,18 @@ class ApiTimelinePublicAction extends ApiPrivateAuthAction
{
$notices = array();
$notice = Notice::publicStream(
($this->page - 1) * $this->count, $this->count, $this->since_id,
$this->max_id
);
$profile = ($this->auth_user) ? $this->auth_user->getProfile() : null;
while ($notice->fetch()) {
$notices[] = clone($notice);
}
$stream = new PublicNoticeStream($profile);
$notice = $stream->getNotices(($this->page - 1) * $this->count,
$this->count,
$this->since_id,
$this->max_id);
$notices = $notice->fetchAll();
NoticeList::prefill($notices);
return $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