Don't set a profile to "discoverable" for restricted hosts

This commit is contained in:
Michael 2024-01-03 00:55:21 +00:00
parent 9592292dba
commit 73df36ca72
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ class Transmitter
$data['url'] = $owner['url'];
$data['manuallyApprovesFollowers'] = in_array($owner['page-flags'], [User::PAGE_FLAGS_NORMAL, User::PAGE_FLAGS_PRVGROUP]);
$data['discoverable'] = (bool)$owner['net-publish'];
$data['discoverable'] = (bool)$owner['net-publish'] && $full;
$data['publicKey'] = ['id' => $owner['url'] . '#main-key',
'owner' => $owner['url'],
'publicKeyPem' => $owner['pubkey']];