diff options
author | Evan Prodromou <evan@status.net> | 2010-01-31 15:16:59 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-31 15:16:59 -0500 |
commit | 30268cff7899519f249861e067e3af680ee1c570 (patch) | |
tree | 6d63f28d129942bb25cef7ad09935dca91b848b7 /actions/public.php | |
parent | dc62246443e3584ef5267505275f618f6fa86bf7 (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/public.php')
-rw-r--r-- | actions/public.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/actions/public.php b/actions/public.php index 982dfde15..50278bfce 100644 --- a/actions/public.php +++ b/actions/public.php @@ -131,12 +131,20 @@ class PublicAction extends Action return _('Public timeline'); } } - + function extraHead() { parent::extraHead(); $this->element('meta', array('http-equiv' => 'X-XRDS-Location', 'content' => common_local_url('publicxrds'))); + + $rsd = common_local_url('rsd'); + + // RSD, http://tales.phrasewise.com/rfc/rsd + + $this->element('link', array('rel' => 'EditURI', + 'type' => 'application/rsd+xml', + 'href' => $rsd)); } /** |