Add an update timestamp to actor after changes

This is what Roadhouse does, and it's vaguely indicated in the AP spec
main
Bob Mottram 2021-10-28 16:59:23 +01:00
parent 605395ba5e
commit 63a94cdae8
1 changed files with 5 additions and 0 deletions

View File

@ -5874,6 +5874,11 @@ class PubServer(BaseHTTPRequestHandler):
actorJson['featuredTags'] = \
actorJson['id'] + '/collections/tags'
randomizeActorImages(actorJson)
# add an updated timestamp to the actor
updatedTime = datetime.datetime.utcnow()
actorJson['updated'] = \
updatedTime.strftime("%Y-%m-%dT%H:%M:%SZ")
# save the actor
saveJson(actorJson, actorFilename)
webfingerUpdate(baseDir,
nickname, domain,