get the correct context for apitimelinementions

This commit is contained in:
Evan Prodromou 2011-05-30 15:09:42 -04:00
parent d44000077d
commit 650af0a271
1 changed files with 7 additions and 2 deletions

View File

@ -193,8 +193,13 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction
{
$notices = array();
$stream = new ReplyNoticeStream($this->user->id,
Profile::current());
if (empty($this->auth_user)) {
$profile = null;
} else {
$profile = $this->auth_user->profile;
}
$stream = new ReplyNoticeStream($this->user->id, $profile);
$notice = $stream->getNotices(($this->page - 1) * $this->count,
$this->count,