summaryrefslogtreecommitdiff
path: root/plugins/OStatus/lib/xrdaction.php
diff options
context:
space:
mode:
authorIan Denhardt <ian@zenhack.net>2010-08-09 15:06:26 -0400
committerIan Denhardt <ian@zenhack.net>2010-08-09 15:06:26 -0400
commite0da39380024c3d4e7eb9a3ae0c5808ca7dcfb74 (patch)
tree6d1e4f88990203797a405fe673143d660f49cb90 /plugins/OStatus/lib/xrdaction.php
parentd933ee7bad47aeb3267dd9c23633d3943478cfe1 (diff)
parentedb62db613478d50def223ec1d60ef5863fa3a4b (diff)
Merge branch '1.0.x' of git://gitorious.org/statusnet/mainline
Diffstat (limited to 'plugins/OStatus/lib/xrdaction.php')
-rw-r--r--plugins/OStatus/lib/xrdaction.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/OStatus/lib/xrdaction.php b/plugins/OStatus/lib/xrdaction.php
index f1a56e0a8..d8cf648d6 100644
--- a/plugins/OStatus/lib/xrdaction.php
+++ b/plugins/OStatus/lib/xrdaction.php
@@ -76,6 +76,9 @@ class XrdAction extends Action
$salmon_url = common_local_url('usersalmon',
array('id' => $this->user->id));
+ $xrd->links[] = array('rel' => Salmon::REL_SALMON,
+ 'href' => $salmon_url);
+ // XXX : Deprecated - to be removed.
$xrd->links[] = array('rel' => Salmon::NS_REPLIES,
'href' => $salmon_url);
@@ -98,7 +101,7 @@ class XrdAction extends Action
$xrd->links[] = array('rel' => 'http://ostatus.org/schema/1.0/subscribe',
'template' => $url );
- header('Content-type: text/xml');
+ header('Content-type: application/xrd+xml');
print $xrd->toXML();
}