X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ftwitapistatuses.php;h=68d6bb622477970855c29746b47ad808104ec916;hb=a528cff1a1391f92c1f9be47bffbacf0c6874ac4;hp=5459db8a012b95c355f65853acd9f7ea0f428575;hpb=f8a73c157e6dbe0bc2b2dae33802d5b306a7012d;p=quix0rs-gnu-social.git diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php index 5459db8a01..68d6bb6224 100644 --- a/actions/twitapistatuses.php +++ b/actions/twitapistatuses.php @@ -128,7 +128,7 @@ 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, $link, $subtitle); break; case 'atom': $this->show_atom_timeline($notice, $title, $id, $link, $subtitle); @@ -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, $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); @@ -356,7 +362,7 @@ class TwitapistatusesAction extends TwitterapiAction { $this->show_xml_timeline($notices); break; case 'rss': - $this->show_rss_timeline($notices, $title, $id, $link, $subtitle); + $this->show_rss_timeline($notices, $title, $link, $subtitle); break; case 'atom': $this->show_atom_timeline($notices, $title, $id, $link, $subtitle);