summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-21 11:24:04 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-21 11:24:04 -0400
commitddcf051b26b00f18f6d3c674406c5bab052bc4a0 (patch)
treee3be197d8640817bc776c16b905bdbd0f6e49130 /actions
parent871dcac8912f9aed8ba474da4a7c741a0d2e8b42 (diff)
add RSS 1.0 link to header of showstream
darcs-hash:20080521152404-84dde-bc5a2121ca9acddca9ed43c07935f713cf5c0b8e.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/showstream.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 7e887a9d9..c98c8b6be 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -47,7 +47,7 @@ class ShowstreamAction extends StreamAction {
# Looks like we're good; show the header
- common_show_header($profile->nickname);
+ common_show_header($profile->nickname, array($this, 'show_header'), $user);
$cur = common_current_user();
@@ -62,6 +62,14 @@ class ShowstreamAction extends StreamAction {
common_show_footer();
}
+ function show_header($user) {
+ common_element('link', array('rel' => 'alternate',
+ 'href' => common_local_url('rss10', array('nickname' =>
+ $user->nickname)),
+ 'type' => 'application/rdf+xml',
+ 'title' => _t('Notice feed for ') . $user->nickname));
+ }
+
function no_such_user() {
common_user_error('No such user');
}