forked from indymedia/epicyon
Set some context
parent
5ba7bed9a1
commit
f7fc448d9b
16
daemon.py
16
daemon.py
|
@ -3772,6 +3772,22 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# which isn't implemented in Epicyon
|
# which isn't implemented in Epicyon
|
||||||
actorJson['discoverable'] = False
|
actorJson['discoverable'] = False
|
||||||
actorChanged = True
|
actorChanged = True
|
||||||
|
if not actorJson['@context'].get('orgSchema'):
|
||||||
|
actorJson['@context']['orgSchema'] = 'toot:orgSchema'
|
||||||
|
actorChanged = True
|
||||||
|
if not actorJson['@context'].get('skills'):
|
||||||
|
actorJson['@context']['skills'] = 'toot:skills'
|
||||||
|
actorChanged = True
|
||||||
|
if not actorJson['@context'].get('roles'):
|
||||||
|
actorJson['@context']['roles'] = 'toot:roles'
|
||||||
|
actorChanged = True
|
||||||
|
if not actorJson['@context'].get('availability'):
|
||||||
|
actorJson['@context']['availaibility'] = \
|
||||||
|
'toot:availability'
|
||||||
|
actorChanged = True
|
||||||
|
if actorJson.get('capabilityAcquisitionEndpoint'):
|
||||||
|
del actorJson['capabilityAcquisitionEndpoint']
|
||||||
|
actorChanged = True
|
||||||
# update the avatar/image url file extension
|
# update the avatar/image url file extension
|
||||||
uploads = profileMediaTypesUploaded.items()
|
uploads = profileMediaTypesUploaded.items()
|
||||||
for mType, lastPart in uploads:
|
for mType, lastPart in uploads:
|
||||||
|
|
|
@ -191,7 +191,12 @@ def getDefaultPersonContext() -> str:
|
||||||
'fingerprintKey': {'@id': 'toot:fingerprintKey', '@type': '@id'},
|
'fingerprintKey': {'@id': 'toot:fingerprintKey', '@type': '@id'},
|
||||||
'messageFranking': 'toot:messageFranking',
|
'messageFranking': 'toot:messageFranking',
|
||||||
'publicKeyBase64': 'toot:publicKeyBase64',
|
'publicKeyBase64': 'toot:publicKeyBase64',
|
||||||
'discoverable': 'toot:discoverable'
|
'discoverable': 'toot:discoverable',
|
||||||
|
'orgSchema': 'toot:orgSchema',
|
||||||
|
'shares': 'toot:shares',
|
||||||
|
'skills': 'toot:skills',
|
||||||
|
'roles': 'toot:roles',
|
||||||
|
'availability': 'toot:availability'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue