We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

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
$notices = array();
$stream = new ReplyNoticeStream($this->user->id,
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,
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