From: Michael Date: Wed, 3 Jan 2024 00:55:21 +0000 (+0000) Subject: Don't set a profile to "discoverable" for restricted hosts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=73df36ca72137073ecf00b66a3c93c9b6ef56669;p=friendica.git Don't set a profile to "discoverable" for restricted hosts --- diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 94655eead1..ac6af7f808 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -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']];