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

View File

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