]> git.mxchange.org Git - friendica.git/commitdiff
Don't set a profile to "discoverable" for restricted hosts
authorMichael <heluecht@pirati.ca>
Wed, 3 Jan 2024 00:55:21 +0000 (00:55 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 3 Jan 2024 00:55:21 +0000 (00:55 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 94655eead17a095d54cbca40f0ca799eddb94501..ac6af7f80894c79bd778d89c6cb0c2c6bc8220ce 100644 (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']];