From 984bb2a80803bda2e9e4b25dca7dce34f708ed6a Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Mon, 5 Feb 2018 21:27:40 +0100 Subject: [PATCH] Bugfix: Probe - get the contact address from xrd 'subject' key --- src/Network/Probe.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index dc533d18d..1c2da3863 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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 == "")) { return false; }