Commit 650af0a2 authored by Evan Prodromou's avatar Evan Prodromou

get the correct context for apitimelinementions

parent d4400007
...@@ -193,8 +193,13 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment