From 9cbe608fc958e23ccf07dc51cf7eb49a3ba0a78d Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 17 Aug 2019 10:40:57 +0200 Subject: [PATCH] Bugfix announce dedup --- core/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/notifications.py b/core/notifications.py index 002f6b4..1710a85 100644 --- a/core/notifications.py +++ b/core/notifications.py @@ -143,7 +143,7 @@ def _announce_set_inbox_flags(activity: ap.Announce, new_meta: _NewMeta) -> None if not find_one_activity( { **in_inbox(), - **by_type([ap.ActivityType.CRETATE, ap.ActivityType.ANNOUNCE]), + **by_type([ap.ActivityType.CREATE, ap.ActivityType.ANNOUNCE]), **by_object_id(obj.id), **flag(MetaKey.STREAM, True), **published_after(datetime.now(timezone.utc) - timedelta(hours=12)),