AP is enabled for all users

This commit is contained in:
Michael 2018-09-22 23:49:27 +00:00
parent ca574e1027
commit a56565fa99
6 changed files with 14 additions and 15 deletions

View file

@ -335,8 +335,9 @@ class Probe
$data = null;
}
if (in_array(defaults($data, 'network', ''), ['', Protocol::PHANTOM])) {
$ap_profile = ActivityPub::probeProfile($uri);
$ap_profile = ActivityPub::probeProfile($uri);
if (!empty($ap_profile) && (defaults($data, 'network', '') != Protocol::DFRN)) {
if (!empty($ap_profile) && ($ap_profile['network'] == Protocol::ACTIVITYPUB)) {
$data = $ap_profile;
}