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

Commit d4400007 authored by Evan Prodromou's avatar Evan Prodromou

use ReplyNoticeStream for mentions API

parent 5a9d969f
...@@ -193,10 +193,13 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction ...@@ -193,10 +193,13 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction
{ {
$notices = array(); $notices = array();
$notice = $this->user->getReplies( $stream = new ReplyNoticeStream($this->user->id,
($this->page - 1) * $this->count, $this->count, Profile::current());
$this->since_id, $this->max_id
); $notice = $stream->getNotices(($this->page - 1) * $this->count,
$this->count,
$this->since_id,
$this->max_id);
while ($notice->fetch()) { while ($notice->fetch()) {
$notices[] = clone($notice); $notices[] = clone($notice);
......
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