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;