From ae84e8f5245256867fd7f5538b39fee8bb8fb970 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 3 Jul 2012 12:22:59 -0400 Subject: [PATCH] Use the current logged-in use for home timeline --- actions/apitimelinehome.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/actions/apitimelinehome.php b/actions/apitimelinehome.php index 56f0e66d04..22c6cc5f94 100644 --- a/actions/apitimelinehome.php +++ b/actions/apitimelinehome.php @@ -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,