get the correct context for apitimelinementions
This commit is contained in:
parent
d44000077d
commit
650af0a271
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user