mirror of https://gitlab.com/bashrc2/epicyon
Extra actor property
parent
403c3a288d
commit
a5e6a19e63
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue