mirror of https://gitlab.com/bashrc2/epicyon
Add updated fields to avatar and banner when actor is changed
parent
63a94cdae8
commit
1f073d4745
|
@ -5878,6 +5878,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
updatedTime = datetime.datetime.utcnow()
|
updatedTime = datetime.datetime.utcnow()
|
||||||
actorJson['updated'] = \
|
actorJson['updated'] = \
|
||||||
updatedTime.strftime("%Y-%m-%dT%H:%M:%SZ")
|
updatedTime.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||||
|
# add updated timestamp to avatar and banner
|
||||||
|
actorJson['icon']['updated'] = actorJson['updated']
|
||||||
|
actorJson['image']['updated'] = actorJson['updated']
|
||||||
# save the actor
|
# save the actor
|
||||||
saveJson(actorJson, actorFilename)
|
saveJson(actorJson, actorFilename)
|
||||||
webfingerUpdate(baseDir,
|
webfingerUpdate(baseDir,
|
||||||
|
|
Loading…
Reference in New Issue