]> git.mxchange.org Git - friendica.git/commitdiff
Preparation for adding more networks there
authorMichael <heluecht@pirati.ca>
Thu, 13 Sep 2018 22:12:33 +0000 (22:12 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 13 Sep 2018 22:12:33 +0000 (22:12 +0000)
src/Network/Probe.php

index 99ecb668c86798c9509877739530ae1b37c93dbe..d48617f43bbe5818032fa0db76eed24c382024a4 100644 (file)
@@ -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;