Browse Source

Preparation for adding more networks there

pull/5794/head
Michael 3 years ago
parent
commit
7b45bdea17
  1. 2
      src/Network/Probe.php

2
src/Network/Probe.php

@ -333,7 +333,7 @@ class Probe
$data = self::detect($uri, $network, $uid);
}
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;

Loading…
Cancel
Save