1
0
Fork 0

Preparation for adding more networks there

This commit is contained in:
Michael 2018-09-13 22:12:33 +00:00
parent c2f6b166c7
commit 7b45bdea17

View file

@ -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;