$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"])) {