From: James Walker Date: Thu, 25 Feb 2010 22:26:10 +0000 (-0500) Subject: replace webfinger usage in hostmeta.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bd90ef9f66ce281c4ef9af724d574a5ead156310;p=quix0rs-gnu-social.git replace webfinger usage in hostmeta.php --- diff --git a/plugins/OStatus/actions/hostmeta.php b/plugins/OStatus/actions/hostmeta.php index 850b8a0fe8..85715ecf4c 100644 --- a/plugins/OStatus/actions/hostmeta.php +++ b/plugins/OStatus/actions/hostmeta.php @@ -31,12 +31,18 @@ class HostMetaAction extends Action { parent::handle(); - $w = new Webfinger(); - - $domain = common_config('site', 'server'); $url = common_local_url('webfinger'); $url.= '?uri={uri}'; - print $w->getHostMeta($domain, $url); + + $xrd = new XRD(); + + $xrd = new XRD(); + $xrd->host = $domain; + $xrd->links[] = array('rel' => Discovery::LRDD_REL, + 'template' => $url, + 'title' => array('Resource Descriptor')); + + print $xrd->toXML(); } }