Bugfix announce dedup

This commit is contained in:
Thomas Sileo 2019-08-17 10:40:57 +02:00
parent 2aa5865e1d
commit 9cbe608fc9

View file

@ -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)),