Fix remote question caching

This commit is contained in:
Thomas Sileo 2019-07-07 18:09:01 +02:00
parent 2d7e03d5b2
commit 10f7e46242

2
app.py
View file

@ -3054,7 +3054,7 @@ def task_fetch_remote_question():
# Also update all the cached copies (Like, Announce...) # Also update all the cached copies (Like, Announce...)
DB.activities.update_many( DB.activities.update_many(
{"meta.object.id": remote_question["id"]}, {"meta.object.id": remote_question["id"]},
{"$set": {"activity.object": remote_question}}, {"$set": {"meta.object": remote_question}},
) )
except HTTPError as err: except HTTPError as err: