Merge pull request #13796 from annando/discoverable

Don't set a profile to "discoverable" for restricted hosts
This commit is contained in:
Hypolite Petovan 2024-01-02 21:25:17 -05:00 committed by GitHub
commit 6c023f832b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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']];