]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '1.1.x' of gitorious.org:statusnet/mainline into 1.1.x
authorEvan Prodromou <evan@status.net>
Tue, 3 Jul 2012 16:27:10 +0000 (12:27 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 3 Jul 2012 16:27:10 +0000 (12:27 -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,