mirror of https://gitlab.com/bashrc2/epicyon
Remove nomadicLocations
parent
f5330c7682
commit
bd66c4420f
|
@ -3873,7 +3873,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if not actorJson.get('discoverable'):
|
if not actorJson.get('discoverable'):
|
||||||
# discoverable in profile directory
|
# discoverable in profile directory
|
||||||
# which isn't implemented in Epicyon
|
# which isn't implemented in Epicyon
|
||||||
actorJson['discoverable'] = False
|
actorJson['discoverable'] = True
|
||||||
actorChanged = True
|
actorChanged = True
|
||||||
if not actorJson['@context'][2].get('orgSchema'):
|
if not actorJson['@context'][2].get('orgSchema'):
|
||||||
actorJson['@context'][2]['orgSchema'] = \
|
actorJson['@context'][2]['orgSchema'] = \
|
||||||
|
@ -3891,10 +3891,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if not actorJson['@context'][2].get('availability'):
|
if not actorJson['@context'][2].get('availability'):
|
||||||
actorJson['@context'][2]['availaibility'] = \
|
actorJson['@context'][2]['availaibility'] = \
|
||||||
'toot:availability'
|
'toot:availability'
|
||||||
if not actorJson['@context'][2].get('nomadicLocations'):
|
|
||||||
actorJson['@context'][2]['nomadicLocations'] = \
|
|
||||||
'toot:nomadicLocations'
|
|
||||||
actorChanged = True
|
|
||||||
if actorJson.get('capabilityAcquisitionEndpoint'):
|
if actorJson.get('capabilityAcquisitionEndpoint'):
|
||||||
del actorJson['capabilityAcquisitionEndpoint']
|
del actorJson['capabilityAcquisitionEndpoint']
|
||||||
actorChanged = True
|
actorChanged = True
|
||||||
|
|
10
person.py
10
person.py
|
@ -540,16 +540,6 @@ def personUpgradeActor(baseDir: str, personJson: {},
|
||||||
return
|
return
|
||||||
if not personJson:
|
if not personJson:
|
||||||
personJson = loadJson(filename)
|
personJson = loadJson(filename)
|
||||||
if not personJson.get('nomadicLocations'):
|
|
||||||
personJson['nomadicLocations'] = [{
|
|
||||||
'id': personJson['id'],
|
|
||||||
'type': 'nomadicLocation',
|
|
||||||
'locationAddress':'acct:'+handle,
|
|
||||||
'locationPrimary':True,
|
|
||||||
'locationDeleted':False
|
|
||||||
}]
|
|
||||||
print('Nomadic locations added to to actor ' + handle)
|
|
||||||
updateActor = True
|
|
||||||
|
|
||||||
if updateActor:
|
if updateActor:
|
||||||
saveJson(personJson, filename)
|
saveJson(personJson, filename)
|
||||||
|
|
Loading…
Reference in New Issue