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/all.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'actions/all.php') diff --git a/actions/all.php b/actions/all.php index 93be7290f..b929b6c1c 100644 --- a/actions/all.php +++ b/actions/all.php @@ -44,7 +44,8 @@ class AllAction extends StreamAction { # Looks like we're good; show the header - common_show_header($profile->nickname . _t(" and friends")); + common_show_header($profile->nickname . _t(" and friends"), + array($this, 'show_header'), $user); $cur = common_current_user(); @@ -56,6 +57,14 @@ class AllAction extends StreamAction { common_show_footer(); } + + function show_header($user) { + common_element('link', array('rel' => 'alternate', + 'href' => common_local_url('allrss', array('nickname' => + $user->nickname)), + 'type' => 'application/rss+xml', + 'title' => _t('Feed for friends of ') . $user->nickname)); + } function show_notices($profile) { -- cgit v1.2.3-54-g00ecf