diff options
author | Evan Prodromou <evan@status.net> | 2009-12-12 16:15:47 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-12 16:15:47 -0500 |
commit | cc063aedccd614d6e486d88921c7752ec5750551 (patch) | |
tree | 603d7055f5b25fbff886c520ecddaee0e998ffd7 /actions/apitimelinementions.php | |
parent | b42b2e1d05867b2dd4cdb3e1b7e278c63001d355 (diff) | |
parent | 78a649ca0af3ffbf1fd23d5ae9e84def7befa79e (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'actions/apitimelinementions.php')
-rw-r--r-- | actions/apitimelinementions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/apitimelinementions.php b/actions/apitimelinementions.php index 0956ccdce..19f40aebc 100644 --- a/actions/apitimelinementions.php +++ b/actions/apitimelinementions.php @@ -110,6 +110,7 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction function showTimeline() { $profile = $this->user->getProfile(); + $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); $sitename = common_config('site', 'name'); $title = sprintf( @@ -126,20 +127,21 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction _('%1$s updates that reply to updates from %2$s / %3$s.'), $sitename, $this->user->nickname, $profile->getBestName() ); + $logo = ($avatar) ? $avatar->displayUrl() : Avatar::defaultImage(AVATAR_PROFILE_SIZE); switch($this->format) { case 'xml': $this->showXmlTimeline($this->notices); break; case 'rss': - $this->showRssTimeline($this->notices, $title, $link, $subtitle); + $this->showRssTimeline($this->notices, $title, $link, $subtitle, null, $logo); break; case 'atom': $selfuri = common_root_url() . ltrim($_SERVER['QUERY_STRING'], 'p='); $this->showAtomTimeline( $this->notices, $title, $id, $link, $subtitle, - null, $selfuri + null, $selfuri, $logo ); break; case 'json': |