diff options
author | James Walker <walkah@walkah.net> | 2010-02-25 17:26:10 -0500 |
---|---|---|
committer | James Walker <walkah@walkah.net> | 2010-02-25 17:26:10 -0500 |
commit | bd90ef9f66ce281c4ef9af724d574a5ead156310 (patch) | |
tree | a27cb4d596a3588fad9e24b532a40469d11764c6 /plugins | |
parent | b2dabe6a48392cc65ec691ab5a52696994233dd5 (diff) |
replace webfinger usage in hostmeta.php
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/OStatus/actions/hostmeta.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/plugins/OStatus/actions/hostmeta.php b/plugins/OStatus/actions/hostmeta.php index 850b8a0fe..85715ecf4 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(); } } |