forked from indymedia/epicyon
Extra context
parent
f56a96a0d3
commit
61a9c5d605
|
@ -3778,12 +3778,18 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if not actorJson['@context'][2].get('skills'):
|
||||
actorJson['@context'][2]['skills'] = 'toot:skills'
|
||||
actorChanged = True
|
||||
if not actorJson['@context'][2].get('shares'):
|
||||
actorJson['@context'][2]['shares'] = 'toot:shares'
|
||||
actorChanged = True
|
||||
if not actorJson['@context'][2].get('roles'):
|
||||
actorJson['@context'][2]['roles'] = 'toot:roles'
|
||||
actorChanged = True
|
||||
if not actorJson['@context'][2].get('availability'):
|
||||
actorJson['@context'][2]['availaibility'] = \
|
||||
'toot:availability'
|
||||
if not actorJson['@context'][2].get('nomadicLocations'):
|
||||
actorJson['@context'][2]['nomadicLocations'] = \
|
||||
'toot:nomadicLocations'
|
||||
actorChanged = True
|
||||
if actorJson.get('capabilityAcquisitionEndpoint'):
|
||||
del actorJson['capabilityAcquisitionEndpoint']
|
||||
|
|
Loading…
Reference in New Issue