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();
|
$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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user