X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FProbe.php;h=2c84ddb85a8312f42a6e3f5d5723051e56045161;hb=3020b0fdc4f4ccdfc1deccc23b8748066a7c9979;hp=0e9219c5a615b8b095f1068b827f060f640d27c4;hpb=e45206ae5d92f99b5f6d027682001ccefd910eec;p=friendica.git diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 0e9219c5a6..2c84ddb85a 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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"])) {