From 3904c10c1aa5d5b29abd8637994016197ed80e45 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 15 Aug 2019 17:42:29 +0200 Subject: [PATCH] Revert dedup --- core/notifications.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core/notifications.py b/core/notifications.py index 614b090..56a50e9 100644 --- a/core/notifications.py +++ b/core/notifications.py @@ -140,16 +140,16 @@ def _announce_set_inbox_flags(activity: ap.Announce, new_meta: _NewMeta) -> None _set_flag(new_meta, MetaKey.GC_KEEP) # Dedup boosts (it's annoying to see the same note multipe times on the same page) - if not find_one_activity( - { - **in_inbox(), - **by_object_id(obj.id), - **flag(MetaKey.STREAM, True), - **published_after(datetime.now(timezone.utc) - timedelta(hours=12)), - } - ): - # Display it in the stream only it not there already (only looking at the last 12 hours) - _set_flag(new_meta, MetaKey.STREAM) + # if not find_one_activity( + # { + # **in_inbox(), + # **by_object_id(obj.id), + # **flag(MetaKey.STREAM, True), + # **published_after(datetime.now(timezone.utc) - timedelta(hours=12)), + # } + # ): + # Display it in the stream only it not there already (only looking at the last 12 hours) + _set_flag(new_meta, MetaKey.STREAM) return None