use ReplyNoticeStream for mentions API

This commit is contained in:
Evan Prodromou 2011-05-30 11:22:52 -04:00
parent 5a9d969f22
commit d44000077d

View File

@ -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);