From 3f85c851be166d1c793a42cb8924509d52b173dd Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 28 Aug 2022 11:39:44 +0200 Subject: [PATCH] More share dedup tweak --- app/boxes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/boxes.py b/app/boxes.py index 3695cdb..9addc7d 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -1659,7 +1659,10 @@ async def _handle_announce_activity( relates_to_inbox_object.ap_published_at # type: ignore ) dup_count = 0 - if (delta_from_original) < skip_delta or ( + if ( + not relates_to_inbox_object.is_hidden_from_stream + and delta_from_original < skip_delta + ) or ( dup_count := ( await db_session.scalar( select(func.count(models.InboxObject.id)).where(