From: Michael Date: Thu, 13 Sep 2018 22:12:33 +0000 (+0000) Subject: Preparation for adding more networks there X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7b45bdea173496b7a5fdf994f28b986d4a80d193;p=friendica.git Preparation for adding more networks there --- 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;