]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/Probe.php
Fix missing mentions
[friendica.git] / src / Network / Probe.php
index 0e9219c5a615b8b095f1068b827f060f640d27c4..2c84ddb85a8312f42a6e3f5d5723051e56045161 100644 (file)
@@ -335,11 +335,10 @@ class Probe
                        $data = null;
                }
 
-               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;
-                       }
+               $ap_profile = ActivityPub::probeProfile($uri);
+
+               if (!empty($ap_profile) && (defaults($data, 'network', '') != Protocol::DFRN)) {
+                       $data = $ap_profile;
                }
 
                if (!isset($data["url"])) {