From: Evan Prodromou Date: Mon, 30 May 2011 15:22:52 +0000 (-0400) Subject: use ReplyNoticeStream for mentions API X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d44000077de839b86338f203639c5bd0baab5b3e;p=quix0rs-gnu-social.git use ReplyNoticeStream for mentions API --- diff --git a/actions/apitimelinementions.php b/actions/apitimelinementions.php index ecd2a1a0e6..6afb11f860 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);