summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-31 15:16:59 -0500
committerEvan Prodromou <evan@status.net>2010-01-31 15:16:59 -0500
commit30268cff7899519f249861e067e3af680ee1c570 (patch)
tree6d63f28d129942bb25cef7ad09935dca91b848b7 /actions/showstream.php
parentdc62246443e3584ef5267505275f618f6fa86bf7 (diff)
Add Really Simple Discovery (RSD) support
Anil Dash suggested that all implementers of the Twitter API include support for the remedial RSD format. This commit adds an RSD action that returns the API root and additional API data to help client developers discover and use our Twitter-compatible API. http://dashes.com/anil/2009/12/the-twitter-api-is-finished.html http://tales.phrasewise.com/rfc/rsd
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index c52919386..07cc68b76 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -178,6 +178,15 @@ class ShowstreamAction extends ProfileAction
$this->element('link', array('rel' => 'microsummary',
'href' => common_local_url('microsummary',
array('nickname' => $this->profile->nickname))));
+
+ $rsd = common_local_url('rsd',
+ array('nickname' => $this->profile->nickname));
+
+ // RSD, http://tales.phrasewise.com/rfc/rsd
+ $this->element('link', array('rel' => 'EditURI',
+ 'type' => 'application/rsd+xml',
+ 'href' => $rsd));
+
}
function showProfile()