From b3da88ceaa597b73e223671eaefe097ab19822fa Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 6 Feb 2022 09:21:14 +0000 Subject: [PATCH] Don't assume AP with Wordpress --- src/Model/GServer.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Model/GServer.php b/src/Model/GServer.php index d38078ea54..3b4866cbf2 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -496,7 +496,7 @@ class GServer $serverdata['url'] = $url; $serverdata['nurl'] = Strings::normaliseLink($url); - if ($serverdata['network'] == Protocol::PHANTOM) { + if (in_array($serverdata['network'], [Protocol::PHANTOM, Protocol::FEED])) { $serverdata = self::detectNetworkViaContacts($url, $serverdata); } @@ -1617,11 +1617,8 @@ class GServer $serverdata['version'] = $version_part[1]; // We still do need a reliable test if some AP plugin is activated - if (DBA::exists('apcontact', ['baseurl' => $url])) { - $serverdata['network'] = Protocol::ACTIVITYPUB; - } else { - $serverdata['network'] = Protocol::FEED; - } + // By now we just check in a later process for some known contacts + $serverdata['network'] = Protocol::FEED; if ($serverdata['detection-method'] == self::DETECT_MANUAL) { $serverdata['detection-method'] = self::DETECT_BODY; -- 2.39.5