]> git.mxchange.org Git - friendica.git/blobdiff - mod/webfinger.php
Fix indent in search_item.tpl
[friendica.git] / mod / webfinger.php
index 4024671b02f271c5a31956b58d54bb98afaf2259..eee0580e3178c8b8a492ecf73fcbd1c718bb82fa 100644 (file)
@@ -1,7 +1,7 @@
 <?php
+require_once("include/Probe.php");
 
-if(! function_exists('webfinger_content')) {
-function webfinger_content(&$a) {
+function webfinger_content(App $a) {
 
        $o .= '<h3>Webfinger Diagnostic</h3>';
 
@@ -13,14 +13,10 @@ function webfinger_content(&$a) {
 
        if(x($_GET,'addr')) {
                $addr = trim($_GET['addr']);
-               if(strpos($addr,'@' !== false))
-                       $res = webfinger($addr);
-               else
-                       $res = lrdd($addr);
+               $res = Probe::lrdd($addr);
                $o .= '<pre>';
                $o .= str_replace("\n",'<br />',print_r($res,true));
                $o .= '</pre>';
        }
        return $o;
 }
-}