forked from forks/microblog.pub
Bugfix announce dedup
This commit is contained in:
parent
2aa5865e1d
commit
9cbe608fc9
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ def _announce_set_inbox_flags(activity: ap.Announce, new_meta: _NewMeta) -> None
|
||||||
if not find_one_activity(
|
if not find_one_activity(
|
||||||
{
|
{
|
||||||
**in_inbox(),
|
**in_inbox(),
|
||||||
**by_type([ap.ActivityType.CRETATE, ap.ActivityType.ANNOUNCE]),
|
**by_type([ap.ActivityType.CREATE, ap.ActivityType.ANNOUNCE]),
|
||||||
**by_object_id(obj.id),
|
**by_object_id(obj.id),
|
||||||
**flag(MetaKey.STREAM, True),
|
**flag(MetaKey.STREAM, True),
|
||||||
**published_after(datetime.now(timezone.utc) - timedelta(hours=12)),
|
**published_after(datetime.now(timezone.utc) - timedelta(hours=12)),
|
||||||
|
|
Loading…
Reference in a new issue