summaryrefslogtreecommitdiff
path: root/actions/rsd.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-15 12:38:53 -0800
committerBrion Vibber <brion@pobox.com>2010-11-15 12:38:53 -0800
commit5c00848b74ff262a1f36efc17f1f44580d3ee313 (patch)
treeec79d3191be24ee9d254e410c02c7b49c0e7dc77 /actions/rsd.php
parente317ec11ad470fe57dc12c0bde1566abde1c036a (diff)
parentd038d0fa465f76395f8e341a04a64661b631c122 (diff)
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'actions/rsd.php')
-rw-r--r--actions/rsd.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/actions/rsd.php b/actions/rsd.php
index f88bf2e9a..e02c85c41 100644
--- a/actions/rsd.php
+++ b/actions/rsd.php
@@ -162,6 +162,20 @@ class RsdAction extends Action
'true');
$this->elementEnd('settings');
$this->elementEnd('api');
+
+ // Atom API
+
+ if (empty($this->user)) {
+ $service = common_local_url('ApiAtomService');
+ } else {
+ $service = common_local_url('ApiAtomService', array('id' => $this->user->nickname));
+ }
+
+ $this->element('api', array('name' => 'Atom',
+ 'preferred' => 'false',
+ 'apiLink' => $service,
+ 'blogID' => $blogID));
+
Event::handle('EndRsdListApis', array($this, $this->user));
}
$this->elementEnd('apis');