Extra fields for groups

main
Bob Mottram 2023-06-17 10:37:48 +01:00
parent 1037d31e4f
commit d75074239d
1 changed files with 5 additions and 0 deletions

View File

@ -481,6 +481,11 @@ def _create_person_base(base_dir: str, nickname: str, domain: str, port: int,
'url': person_url
}
# extra fields used only by groups
if group_account:
new_person['postingRestrictedToMods'] = False
new_person['moderators'] = person_id + '/moderators'
if nickname == 'inbox':
# fields not needed by the shared inbox
del new_person['outbox']