mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Revert dedup
This commit is contained in:
parent
4b4fb93b2e
commit
3904c10c1a
1 changed files with 10 additions and 10 deletions
|
@ -140,16 +140,16 @@ def _announce_set_inbox_flags(activity: ap.Announce, new_meta: _NewMeta) -> None
|
||||||
_set_flag(new_meta, MetaKey.GC_KEEP)
|
_set_flag(new_meta, MetaKey.GC_KEEP)
|
||||||
|
|
||||||
# Dedup boosts (it's annoying to see the same note multipe times on the same page)
|
# Dedup boosts (it's annoying to see the same note multipe times on the same page)
|
||||||
if not find_one_activity(
|
# if not find_one_activity(
|
||||||
{
|
# {
|
||||||
**in_inbox(),
|
# **in_inbox(),
|
||||||
**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)),
|
||||||
}
|
# }
|
||||||
):
|
# ):
|
||||||
# Display it in the stream only it not there already (only looking at the last 12 hours)
|
# Display it in the stream only it not there already (only looking at the last 12 hours)
|
||||||
_set_flag(new_meta, MetaKey.STREAM)
|
_set_flag(new_meta, MetaKey.STREAM)
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue