Use the current logged-in use for home timeline

This commit is contained in:
Evan Prodromou 2012-07-03 12:22:59 -04:00
parent 961607bc5d
commit ae84e8f524
1 changed files with 7 additions and 1 deletions

View File

@ -192,7 +192,13 @@ class ApiTimelineHomeAction extends ApiBareAuthAction
{
$notices = array();
$stream = new InboxNoticeStream($this->user);
$profile = null;
if (isset($this->auth_user)) {
$profile = $this->auth_user->getProfile();
}
$stream = new InboxNoticeStream($this->user, $profile);
$notice = $stream->getNotices(($this->page-1) * $this->count,
$this->count,