Merge pull request #4402 from rabuzarus/20180205_-_fix_get_addr_in_probe
Bugfix: Probe - get the contact address from xrd 'subject' key
This commit is contained in:
commit
c1c4c32966
1 changed files with 4 additions and 0 deletions
|
@ -962,6 +962,10 @@ class Probe
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (substr($webfinger["subject"], 0, 5) == "acct:") {
|
||||||
|
$data["addr"] = substr($webfinger["subject"], 5);
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($data["network"]) || ($hcard_url == "")) {
|
if (!isset($data["network"]) || ($hcard_url == "")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue