Fix caching and tweak design
This commit is contained in:
parent
8aba17f742
commit
98a2f8dbf8
9 changed files with 82 additions and 51 deletions
|
@ -569,6 +569,7 @@ class MicroblogPubBackend(Backend):
|
|||
)
|
||||
return None
|
||||
|
||||
print(f"processing {create!r} and incrementing {in_reply_to}")
|
||||
creply = DB.activities.find_one_and_update(
|
||||
{"activity.object.id": in_reply_to},
|
||||
{"$inc": {"meta.count_reply": 1, "meta.count_direct_reply": 1}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue