From 09cdef118cdde1bb395be0401ba1af7679601764 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 27 Aug 2022 17:28:53 +0200 Subject: [PATCH] Fix share dedup --- app/boxes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/boxes.py b/app/boxes.py index 8b25170..3695cdb 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -1658,6 +1658,7 @@ async def _handle_announce_activity( delta_from_original = now() - as_utc( relates_to_inbox_object.ap_published_at # type: ignore ) + dup_count = 0 if (delta_from_original) < skip_delta or ( dup_count := ( await db_session.scalar(