X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOStatus%2Factions%2Fhostmeta.php;h=8ca07f9165535e493d52eb3b598ca59057051fac;hb=10f72f62af400f9b0edc6bc8a3f6a850395e3699;hp=85715ecf4cf34d1a1ad52feb7ed3d18ad98a28b6;hpb=bd90ef9f66ce281c4ef9af724d574a5ead156310;p=quix0rs-gnu-social.git diff --git a/plugins/OStatus/actions/hostmeta.php b/plugins/OStatus/actions/hostmeta.php index 85715ecf4c..8ca07f9165 100644 --- a/plugins/OStatus/actions/hostmeta.php +++ b/plugins/OStatus/actions/hostmeta.php @@ -32,17 +32,16 @@ class HostMetaAction extends Action parent::handle(); $domain = common_config('site', 'server'); - $url = common_local_url('webfinger'); + $url = common_local_url('userxrd'); $url.= '?uri={uri}'; - $xrd = new XRD(); - $xrd = new XRD(); $xrd->host = $domain; $xrd->links[] = array('rel' => Discovery::LRDD_REL, 'template' => $url, 'title' => array('Resource Descriptor')); + header('Content-type: application/xrd+xml'); print $xrd->toXML(); } }