From 7b45bdea173496b7a5fdf994f28b986d4a80d193 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 13 Sep 2018 22:12:33 +0000 Subject: [PATCH] Preparation for adding more networks there --- src/Network/Probe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 99ecb668c8..d48617f43b 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -333,7 +333,7 @@ class Probe $data = self::detect($uri, $network, $uid); } - if (empty($data) || ($data['network'] == Protocol::PHANTOM)) { + if (in_array(defaults($data, 'network', ''), ['', Protocol::PHANTOM])) { $ap_profile = ActivityPub::fetchProfile($uri); if (!empty($ap_profile) && ($ap_profile['network'] == Protocol::ACTIVITYPUB)) { $data = $ap_profile; -- 2.39.5