]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use the current logged-in use for home timeline
authorEvan Prodromou <evan@status.net>
Tue, 3 Jul 2012 16:22:59 +0000 (12:22 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 3 Jul 2012 16:22:59 +0000 (12:22 -0400)
actions/apitimelinehome.php

index 56f0e66d0433f2eb436f4a84413546521e40bcec..22c6cc5f944b6f3ee481e479fca84d1bcea63b84 100644 (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,