]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
replace webfinger usage in hostmeta.php
authorJames Walker <walkah@walkah.net>
Thu, 25 Feb 2010 22:26:10 +0000 (17:26 -0500)
committerJames Walker <walkah@walkah.net>
Thu, 25 Feb 2010 22:26:10 +0000 (17:26 -0500)
plugins/OStatus/actions/hostmeta.php

index 850b8a0fe89d47bab373327abab797db13dbc5b9..85715ecf4cf34d1a1ad52feb7ed3d18ad98a28b6 100644 (file)
@@ -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();
     }
 }