mirror of https://gitlab.com/bashrc2/epicyon
Update actor context when saved
parent
ed24c2140a
commit
c682c759ba
|
@ -43,6 +43,7 @@ from matrix import getMatrixAddress
|
|||
from matrix import setMatrixAddress
|
||||
from donate import getDonationUrl
|
||||
from donate import setDonationUrl
|
||||
from person import getDefaultPersonContext
|
||||
from person import savePersonQrcode
|
||||
from person import randomizeActorImages
|
||||
from person import personUpgradeActor
|
||||
|
@ -6616,6 +6617,12 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
os.remove(gitProjectsFilename)
|
||||
# save actor json file within accounts
|
||||
if actorChanged:
|
||||
# update the context for the actor
|
||||
actorJson['@context'] = [
|
||||
'https://www.w3.org/ns/activitystreams',
|
||||
'https://w3id.org/security/v1',
|
||||
getDefaultPersonContext()
|
||||
]
|
||||
randomizeActorImages(actorJson)
|
||||
saveJson(actorJson, actorFilename)
|
||||
webfingerUpdate(self.server.baseDir,
|
||||
|
|
Loading…
Reference in New Issue