Skip to content

feat: expire duplicate-media hashes after a configurable TTL#236

Merged
Djaler merged 1 commit into
masterfrom
feature/media-hash-ttl
Jun 14, 2026
Merged

feat: expire duplicate-media hashes after a configurable TTL#236
Djaler merged 1 commit into
masterfrom
feature/media-hash-ttl

Conversation

@Djaler

@Djaler Djaler commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Hashes no longer live forever. Each sighting records last_seen_at; a repost links to the previous occurrence and shifts the row forward (message_id + last_seen_at updated), so the TTL is a sliding window. A daily scheduler deletes hashes not seen within evil.bot.media-hash-ttl (default 180 days).

Hashes no longer live forever. Each sighting records last_seen_at; a
repost links to the previous occurrence and shifts the row forward
(message_id + last_seen_at updated), so the TTL is a sliding window.
A daily scheduler deletes hashes not seen within evil.bot.media-hash-ttl
(default 180 days).
@Djaler Djaler merged commit 7cc5017 into master Jun 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant