summaryrefslogtreecommitdiff
path: root/actions/userrss.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-10-24 22:28:49 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-10-24 22:28:49 -0400
commit22057e01bd6fdf366340e6fdbdf6bb1252bceb8c (patch)
treef3480cdbfb956eaa90a3e80de66d21e7080f4a89 /actions/userrss.php
parentb26477d787481060e274f3a7007eaea2a6042062 (diff)
add SUP link to User RSS
darcs-hash:20081025022849-5ed1f-edd99a830ff285f4d0468e0e9ce3ceba4a885352.gz
Diffstat (limited to 'actions/userrss.php')
-rw-r--r--actions/userrss.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/actions/userrss.php b/actions/userrss.php
index 1f103dc08..a30c7bc28 100644
--- a/actions/userrss.php
+++ b/actions/userrss.php
@@ -79,4 +79,14 @@ class UserrssAction extends Rss10Action {
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
return ($avatar) ? $avatar->url : NULL;
}
+
+ # override parent to add X-SUP-ID URL
+
+ function show_rss($limit=0) {
+ $url = common_local_url('sup', NULL, $this->user->id);
+ header('X-SUP-ID', $url);
+ parent::show_rss($limit);
+ }
+
+
} \ No newline at end of file