From d44000077de839b86338f203639c5bd0baab5b3e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 30 May 2011 11:22:52 -0400 Subject: [PATCH] use ReplyNoticeStream for mentions API --- actions/apitimelinementions.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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); -- 2.39.2