summaryrefslogtreecommitdiff
path: root/actions/hostmeta.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-11-26 21:46:51 -0500
committerEvan Prodromou <evan@status.net>2010-11-26 21:46:51 -0500
commitfcc0825b14c1499ec97088fa4ec39a7bbb4d0ec1 (patch)
treeeed37f69632c719460af8cb42c7fb180c0d65dff /actions/hostmeta.php
parent0a4911552e6930f2e5d2830615b29be518af2a8a (diff)
Make userxrd part of the default hostmeta
Diffstat (limited to 'actions/hostmeta.php')
-rw-r--r--actions/hostmeta.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/hostmeta.php b/actions/hostmeta.php
index b7beee5a8..2587bb6b9 100644
--- a/actions/hostmeta.php
+++ b/actions/hostmeta.php
@@ -51,6 +51,11 @@ class HostMetaAction extends Action
$xrd->host = $domain;
if(Event::handle('StartHostMetaLinks', array(&$xrd->links))) {
+ $url = common_local_url('userxrd');
+ $url.= '?uri={uri}';
+ $xrd->links[] = array('rel' => Discovery::LRDD_REL,
+ 'template' => $url,
+ 'title' => array('Resource Descriptor'));
Event::handle('EndHostMetaLinks', array(&$xrd->links));
}