Extra actor property

main
Bob Mottram 2024-05-16 10:02:33 +01:00
parent 403c3a288d
commit a5e6a19e63
1 changed files with 9 additions and 0 deletions

View File

@ -521,6 +521,7 @@ def _create_person_base(base_dir: str, nickname: str, domain: str, port: int,
},
'inbox': inbox_str,
'manuallyApprovesFollowers': approve_followers,
'capabilities': {'acceptsChatMessages': False},
'discoverable': True,
'indexable': False,
'searchableBy': [],
@ -858,6 +859,14 @@ def person_upgrade_actor(base_dir: str, person_json: {},
person_json['moderators'] = person_id + '/moderators'
update_actor = True
if 'capabilities' not in person_json:
person_json['capabilities'] = {'acceptsChatMessages': False}
update_actor = True
else:
if 'acceptsChatMessages' not in person_json['capabilities']:
person_json['capabilities']['acceptsChatMessages'] = False
update_actor = True
if 'memorial' not in person_json:
person_json['memorial'] = False
update_actor = True