From 90e4512df2c8497cea0ad704d10f464b1856d58b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 26 Oct 2008 10:53:26 -0400 Subject: add SUP links to RSS and Atom, too darcs-hash:20081026145326-5ed1f-430b98eedef21903caaae47e3355482ae7bfa616.gz --- actions/twitapistatuses.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'actions/twitapistatuses.php') diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php index 5459db8a0..a33e8cc3b 100644 --- a/actions/twitapistatuses.php +++ b/actions/twitapistatuses.php @@ -191,6 +191,12 @@ class TwitapistatusesAction extends TwitterapiAction { $link = common_local_url('showstream', array('nickname' => $user->nickname)); $subtitle = sprintf(_('Updates from %1$s on %2$s!'), $user->nickname, $sitename); + # FriendFeed's SUP protocol + # Also added RSS and Atom feeds + + $suplink = common_local_url('sup', NULL, $user->id); + header('X-SUP-ID: '.$suplink); + # XXX: since $notice = $user->getNotices((($page-1)*20), $count, $since_id, $before_id); @@ -200,10 +206,10 @@ class TwitapistatusesAction extends TwitterapiAction { $this->show_xml_timeline($notice); break; case 'rss': - $this->show_rss_timeline($notice, $title, $id, $link, $subtitle); + $this->show_rss_timeline($notice, $title, $id, $link, $subtitle, $suplink); break; case 'atom': - $this->show_atom_timeline($notice, $title, $id, $link, $subtitle); + $this->show_atom_timeline($notice, $title, $id, $link, $subtitle, $suplink); break; case 'json': $this->show_json_timeline($notice); -- cgit v1.2.3-54-g00ecf