mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +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)
|
||||
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue