From: Michael Date: Sun, 23 Aug 2020 07:24:39 +0000 (+0000) Subject: Use the AP adress for probing webfinger X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=41c96f787df36a985f85d0a5f36b6bc477bca0a2;p=friendica.git Use the AP adress for probing webfinger --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 943d53ff66..098e48c6fc 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -712,7 +712,14 @@ class Probe Logger::info('Probing start', ['uri' => $uri]); - $data = self::getWebfingerArray($uri); + if (!empty($ap_profile['addr']) && ($ap_profile['addr'] != $uri)) { + $data = self::getWebfingerArray($ap_profile['addr']); + } + + if (empty($data)) { + $data = self::getWebfingerArray($uri); + } + if (empty($data)) { if (!empty($parts['scheme'])) { return self::feed($uri);