From b3f25e7da15b342029fc4e194742e3f75783a083 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 19 Sep 2022 21:16:09 +0200 Subject: [PATCH] Improve replies counter for out-of-order replies --- app/boxes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/boxes.py b/app/boxes.py index 9af4631..b5151d8 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -1618,6 +1618,8 @@ async def _process_note_object( is_hidden_from_stream=not ( (not is_reply and is_from_following) or is_mention or is_local_reply ), + # We may already have some replies in DB + replies_count=await _get_replies_count(db_session, ro.ap_id), ) db_session.add(inbox_object)