Improve replies counter for out-of-order replies

main
Thomas Sileo 2022-09-19 21:16:09 +02:00
parent d44c8a58aa
commit b3f25e7da1
1 changed files with 2 additions and 0 deletions

View File

@ -1618,6 +1618,8 @@ async def _process_note_object(
is_hidden_from_stream=not ( is_hidden_from_stream=not (
(not is_reply and is_from_following) or is_mention or is_local_reply (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) db_session.add(inbox_object)