]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
get correct profile for friends timeline
authorEvan Prodromou <evan@status.net>
Wed, 25 May 2011 16:51:21 +0000 (12:51 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 25 May 2011 16:51:21 +0000 (12:51 -0400)
actions/apitimelinefriends.php

index 279265a30ee55a94e30daaf41ba06baea8822d3f..33248203bc4e62222f9dab33082ebb18d828e0e0 100644 (file)
@@ -289,7 +289,13 @@ class ApiTimelineFriendsAction 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,