Upgrade to fediverse city

main
Bob Mottram 2021-05-17 11:29:07 +01:00
parent b60ba0431e
commit 8ff0a3a33e
1 changed files with 7 additions and 0 deletions

View File

@ -640,6 +640,13 @@ def personUpgradeActor(baseDir: str, personJson: {},
"name": "Fediverse"
}
updateActor = True
else:
if ocItem['occupationLocation']['@type'] != 'City':
ocItem['occupationLocation'] = {
"@type": "City",
"name": "Fediverse"
}
updateActor = True
# if no roles are defined then ensure that the admin
# roles are configured