mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Also update cached when receiving poll updates
This commit is contained in:
parent
10f7e46242
commit
ffdc6e781b
1 changed files with 4 additions and 0 deletions
|
@ -446,6 +446,10 @@ class MicroblogPubBackend(Backend):
|
||||||
DB.activities.update_one(
|
DB.activities.update_one(
|
||||||
{"box": Box.INBOX.value, "activity.object.id": obj.id}, {"$set": _set}
|
{"box": Box.INBOX.value, "activity.object.id": obj.id}, {"$set": _set}
|
||||||
)
|
)
|
||||||
|
# Also update the cached copies of the question (like Announce and Like)
|
||||||
|
DB.activities.update_many(
|
||||||
|
{"meta.object.id": obj.id}, {"$set": {"meta.object": obj.to_dict()}}
|
||||||
|
)
|
||||||
|
|
||||||
# FIXME(tsileo): handle update actor amd inbox_update_note/inbox_update_actor
|
# FIXME(tsileo): handle update actor amd inbox_update_note/inbox_update_actor
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue