diff options
Diffstat (limited to 'mod/webfinger.php')
-rw-r--r-- | mod/webfinger.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mod/webfinger.php b/mod/webfinger.php index 74bd2c954..a646961a8 100644 --- a/mod/webfinger.php +++ b/mod/webfinger.php @@ -14,10 +14,15 @@ function webfinger_content(&$a) { if(x($_GET,'addr')) { $addr = trim($_GET['addr']); - if(strpos($addr,'@' !== false)) - $res = webfinger($addr); - else - $res = lrdd($addr); + if(strpos($addr,'@') !== false) { + $res = webfinger_rfc7033($addr); + if(! $res) + $res = old_webfinger($addr); + } + else { + if(function_exists('lrdd')) + $res = lrdd($addr); + } $o .= '<pre>'; $o .= str_replace("\n",'<br />',print_r($res,true)); $o .= '</pre>'; |