Upgrade actor with a blocked endpoint

merge-requests/30/head
Bob Mottram 2023-07-05 12:17:25 +01:00
parent f252846f7e
commit d3fce7dcf6
1 changed files with 3 additions and 0 deletions

View File

@ -805,6 +805,9 @@ def person_upgrade_actor(base_dir: str, person_json: {},
update_actor = True
if person_json.get('endpoints'):
if not person_json['endpoints'].get('blocked'):
person_json['endpoints']['blocked'] = person_json['id'] + '/blocked'
update_actor = True
if not person_json['endpoints'].get('offers'):
person_json['endpoints']['offers'] = person_json['id'] + '/offers'
update_actor = True