mirror of https://gitlab.com/bashrc2/epicyon
Add an update timestamp to actor after changes
This is what Roadhouse does, and it's vaguely indicated in the AP specmain
parent
605395ba5e
commit
63a94cdae8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue