From 73df36ca72137073ecf00b66a3c93c9b6ef56669 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 3 Jan 2024 00:55:21 +0000 Subject: [PATCH] Don't set a profile to "discoverable" for restricted hosts --- src/Protocol/ActivityPub/Transmitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']]; -- 2.39.5