diff --git a/actions/apitimelinementions.php b/actions/apitimelinementions.php index ecd2a1a0e69594511bdc6c10eb6db57ec9344df2..6afb11f860586a3c0c8e94cf79ac2200ae4587b2 100644 --- a/actions/apitimelinementions.php +++ b/actions/apitimelinementions.php @@ -193,10 +193,13 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction { $notices = array(); - $notice = $this->user->getReplies( - ($this->page - 1) * $this->count, $this->count, - $this->since_id, $this->max_id - ); + $stream = new ReplyNoticeStream($this->user->id, + Profile::current()); + + $notice = $stream->getNotices(($this->page - 1) * $this->count, + $this->count, + $this->since_id, + $this->max_id); while ($notice->fetch()) { $notices[] = clone($notice);