From 5852c45618eb5294b5e823ffe30d4b143daa4eb5 Mon Sep 17 00:00:00 2001 From: nobody Date: Sat, 30 Oct 2021 12:45:06 -0700 Subject: [PATCH] add Pleroma's "acceptsJoins" flag to Group actors. --- Zotlabs/Lib/Activity.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 9eedb1a68..872fda49a 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1652,6 +1652,9 @@ class Activity { ]; $ret['manuallyApprovesFollowers'] = (($auto_follow) ? false : true); + if ($ret['type'] === 'Group') { + $ret['capabilities'] = [ 'acceptsJoins' => true ]; + } // map other nomadic identities linked with this channel $locations = []; @@ -4308,6 +4311,8 @@ class Activity { 'value' => 'schema:value', 'discoverable' => 'toot:discoverable', 'wall' => 'sm:wall', + 'capabilities' => 'litepub:capabilities', + 'acceptsJoins' => 'litepub:acceptsJoins', ]; }