X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Fhostmeta.php;h=e921b5ad59d4473f17c4608d61d1f6bb88e96c08;hb=e6fd3fa0383dfaa914d2e55965cd4676f56206c4;hp=b7beee5a86d75faff99031962d079ff63a484dab;hpb=b26eccf33cf69c04a96d5d6d3eddc0ef68ffd4b1;p=quix0rs-gnu-social.git diff --git a/actions/hostmeta.php b/actions/hostmeta.php index b7beee5a86..e921b5ad59 100644 --- a/actions/hostmeta.php +++ b/actions/hostmeta.php @@ -28,9 +28,9 @@ if (!defined('STATUSNET')) { exit(1); } +// @todo XXX: Add documentation. class HostMetaAction extends Action { - /** * Is read only? * @@ -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)); }