]> git.mxchange.org Git - friendica.git/commitdiff
Use the AP adress for probing webfinger
authorMichael <heluecht@pirati.ca>
Sun, 23 Aug 2020 07:24:39 +0000 (07:24 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 23 Aug 2020 07:24:39 +0000 (07:24 +0000)
src/Network/Probe.php

index 943d53ff66b168f9ce532ac50d52c7ab3a83b10b..098e48c6fc8e224558d43c75dbd8f2368850481c 100644 (file)
@@ -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);