diff options
author | Hue Bastard <hubris@kevin.(none)> | 2009-12-08 21:28:11 +1000 |
---|---|---|
committer | Brion Vibber <brion@status.net> | 2009-12-11 16:15:22 -0800 |
commit | 59e5958d3afa0a5613efbc1ed4546ce63946fe43 (patch) | |
tree | 65736eb221001a02bdd5c73db702e3823b60728d /actions/apitimelinepublic.php | |
parent | e2f0fc7b3f459a38c71c730c4006db42cab4724e (diff) |
ticket 2055: added logos to Atom and RSS feeds
Diffstat (limited to 'actions/apitimelinepublic.php')
-rw-r--r-- | actions/apitimelinepublic.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/apitimelinepublic.php b/actions/apitimelinepublic.php index 7a8504259..633f3c36e 100644 --- a/actions/apitimelinepublic.php +++ b/actions/apitimelinepublic.php @@ -103,6 +103,7 @@ class ApiTimelinePublicAction extends ApiPrivateAuthAction function showTimeline() { $sitename = common_config('site', 'name'); + $sitelogo = (common_config('site', 'logo')) ? common_config('site', 'logo') : Theme::path('logo.png'); $title = sprintf(_("%s public timeline"), $sitename); $taguribase = common_config('integration', 'taguri'); $id = "tag:$taguribase:PublicTimeline"; @@ -114,13 +115,13 @@ class ApiTimelinePublicAction extends ApiPrivateAuthAction $this->showXmlTimeline($this->notices); break; case 'rss': - $this->showRssTimeline($this->notices, $title, $link, $subtitle); + $this->showRssTimeline($this->notices, $title, $link, $subtitle, null, $sitelogo); break; case 'atom': $selfuri = common_root_url() . 'api/statuses/public_timeline.atom'; $this->showAtomTimeline( $this->notices, $title, $id, $link, - $subtitle, null, $selfuri + $subtitle, null, $selfuri, $sitelogo ); break; case 'json': |