mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Fix share dedup
This commit is contained in:
parent
00004a3239
commit
09cdef118c
1 changed files with 1 additions and 0 deletions
|
@ -1658,6 +1658,7 @@ async def _handle_announce_activity(
|
||||||
delta_from_original = now() - as_utc(
|
delta_from_original = now() - as_utc(
|
||||||
relates_to_inbox_object.ap_published_at # type: ignore
|
relates_to_inbox_object.ap_published_at # type: ignore
|
||||||
)
|
)
|
||||||
|
dup_count = 0
|
||||||
if (delta_from_original) < skip_delta or (
|
if (delta_from_original) < skip_delta or (
|
||||||
dup_count := (
|
dup_count := (
|
||||||
await db_session.scalar(
|
await db_session.scalar(
|
||||||
|
|
Loading…
Reference in a new issue