mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
More share dedup tweak
This commit is contained in:
parent
333e367a5b
commit
3f85c851be
1 changed files with 4 additions and 1 deletions
|
@ -1659,7 +1659,10 @@ async def _handle_announce_activity(
|
||||||
relates_to_inbox_object.ap_published_at # type: ignore
|
relates_to_inbox_object.ap_published_at # type: ignore
|
||||||
)
|
)
|
||||||
dup_count = 0
|
dup_count = 0
|
||||||
if (delta_from_original) < skip_delta or (
|
if (
|
||||||
|
not relates_to_inbox_object.is_hidden_from_stream
|
||||||
|
and delta_from_original < skip_delta
|
||||||
|
) or (
|
||||||
dup_count := (
|
dup_count := (
|
||||||
await db_session.scalar(
|
await db_session.scalar(
|
||||||
select(func.count(models.InboxObject.id)).where(
|
select(func.count(models.InboxObject.id)).where(
|
||||||
|
|
Loading…
Reference in a new issue