Merge pull request #9054 from annando/probe-addr

Use the AP adress for probing webfinger
This commit is contained in:
Hypolite Petovan 2020-08-23 06:41:52 -04:00 committed by GitHub
commit 750f83fba0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -712,7 +712,14 @@ class Probe
Logger::info('Probing start', ['uri' => $uri]); Logger::info('Probing start', ['uri' => $uri]);
if (!empty($ap_profile['addr']) && ($ap_profile['addr'] != $uri)) {
$data = self::getWebfingerArray($ap_profile['addr']);
}
if (empty($data)) {
$data = self::getWebfingerArray($uri); $data = self::getWebfingerArray($uri);
}
if (empty($data)) { if (empty($data)) {
if (!empty($parts['scheme'])) { if (!empty($parts['scheme'])) {
return self::feed($uri); return self::feed($uri);