Add updated fields to avatar and banner when actor is changed

main
Bob Mottram 2021-10-28 17:13:22 +01:00
parent 63a94cdae8
commit 1f073d4745
1 changed files with 3 additions and 0 deletions

View File

@ -5878,6 +5878,9 @@ class PubServer(BaseHTTPRequestHandler):
updatedTime = datetime.datetime.utcnow()
actorJson['updated'] = \
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
saveJson(actorJson, actorFilename)
webfingerUpdate(baseDir,