summaryrefslogtreecommitdiff
path: root/actions/hostmeta.php
diff options
context:
space:
mode:
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));
}