From 32f47004df3bc795a3cbdc380ceaaf9159436a36 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 25 May 2011 12:51:21 -0400 Subject: [PATCH] get correct profile for friends timeline --- actions/apitimelinefriends.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/actions/apitimelinefriends.php b/actions/apitimelinefriends.php index 279265a30e..33248203bc 100644 --- a/actions/apitimelinefriends.php +++ b/actions/apitimelinefriends.php @@ -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,