diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-17 17:51:31 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-17 17:51:31 -0700 |
commit | f0a7a6a1e2517494622206f06b1c21648daf43c7 (patch) | |
tree | a8f8751bbfdf0417f40b3cd1481f300d4b708f95 /include/network.php | |
parent | 4090843fef6defa88bee36c4547b418f1e818139 (diff) | |
download | volse-hubzilla-f0a7a6a1e2517494622206f06b1c21648daf43c7.tar.gz volse-hubzilla-f0a7a6a1e2517494622206f06b1c21648daf43c7.tar.bz2 volse-hubzilla-f0a7a6a1e2517494622206f06b1c21648daf43c7.zip |
consolidate zotfinger and webfinger
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php index d3320f3ee..48371c5e2 100644 --- a/include/network.php +++ b/include/network.php @@ -1282,7 +1282,7 @@ LSIeXnd14lQYK/uxW/8cTFjcmddsKxeXysoQxbSa9VdDK+KkpZdgYXYrTTofXs6v+ } -function webfinger_rfc7033($webbie) { +function webfinger_rfc7033($webbie,$zot = false) { if(! strpos($webbie,'@')) @@ -1292,7 +1292,7 @@ function webfinger_rfc7033($webbie) { $resource = 'acct:' . $webbie; - $s = z_fetch_url('https://' . $rhs . '/.well-known/webfinger?resource=' . $resource); + $s = z_fetch_url('https://' . $rhs . '/.well-known/webfinger?f=&resource=' . $resource . (($zot) ? '&zot=1' : '')); if($s['success']) $j = json_decode($s['body'],true); |