From 735b8ddc676cc7d85ca4256994755e61ea6023a1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 22 May 2008 07:41:52 -0400 Subject: RSS feeds for public stream and friends streams darcs-hash:20080522114152-84dde-7e9b6f465829fc71391613c93df112a7956deffc.gz --- actions/public.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'actions/public.php') diff --git a/actions/public.php b/actions/public.php index c8a0eaa63..dc15a3a5e 100644 --- a/actions/public.php +++ b/actions/public.php @@ -28,7 +28,7 @@ class PublicAction extends StreamAction { $page = $this->arg('page') || 1; - common_show_header(_t('Public timeline')); + common_show_header(_t('Public timeline'), array($this, 'show_header')); # XXX: Public sidebar here? @@ -37,6 +37,13 @@ class PublicAction extends StreamAction { common_show_footer(); } + function show_header() { + common_element('link', array('rel' => 'alternate', + 'href' => common_local_url('publicrss'), + 'type' => 'application/rss+xml', + 'title' => _t('Public Stream Feed'))); + } + function show_notices($page) { $notice = DB_DataObject::factory('notice'); -- cgit v1.2.3-54-g00ecf