]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/Probe.php
Contact follow and unfollow workd partially
[friendica.git] / src / Network / Probe.php
index 99ecb668c86798c9509877739530ae1b37c93dbe..2cf91486bbdd8428ac51f07c1a8061163c478198 100644 (file)
@@ -331,9 +331,11 @@ class Probe
 
                if ($network != Protocol::ACTIVITYPUB) {
                        $data = self::detect($uri, $network, $uid);
+               } else {
+                       $data = null;
                }
 
-               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;