From 762ca15dab3e7315766be5678602dd0ac7c1917b Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 13 Mar 2020 16:15:07 -0700 Subject: [PATCH] Include manually approves followers in actor Works on #82 --- fedireads/activitypub/actor.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fedireads/activitypub/actor.py b/fedireads/activitypub/actor.py index 1144fd1c..cdafa994 100644 --- a/fedireads/activitypub/actor.py +++ b/fedireads/activitypub/actor.py @@ -5,7 +5,13 @@ def get_actor(user): return { '@context': [ 'https://www.w3.org/ns/activitystreams', - 'https://w3id.org/security/v1' + 'https://w3id.org/security/v1', + { + "manuallyApprovesFollowers": "as:manuallyApprovesFollowers", + "schema": "http://schema.org#", + "PropertyValue": "schema:PropertyValue", + "value": "schema:value", + }, ], 'id': user.actor, @@ -26,5 +32,6 @@ def get_actor(user): 'sharedInbox': user.shared_inbox, }, 'fedireadsUser': True, + 'manuallyApprovesFollowers': user.manually_approves_followers, }