X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fhostmeta.php;h=e921b5ad59d4473f17c4608d61d1f6bb88e96c08;hb=471a4805871c44ad8770342ca8ca05536068dc85;hp=be73665f2962b708a1345a4555245d0bc46381a7;hpb=59119482ca34540bd7f0a2a1aa994de1d5328ea2;p=quix0rs-gnu-social.git diff --git a/actions/hostmeta.php b/actions/hostmeta.php index be73665f29..e921b5ad59 100644 --- a/actions/hostmeta.php +++ b/actions/hostmeta.php @@ -24,11 +24,13 @@ * @author Craig Andrews */ -if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } +if (!defined('STATUSNET')) { + exit(1); +} +// @todo XXX: Add documentation. class HostMetaAction extends Action { - /** * Is read only? * @@ -49,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)); }