Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
Co-authored-by: Travis Ralston <travisr@matrix.org>
  • Loading branch information
H-Shay and turt2live authored Oct 4, 2024
1 parent 2c18370 commit 1754a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protections/MentionSpam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const DEFAULT_MAX_MENTIONS = 10;
export class MentionSpam extends Protection {

private roomDisplaynameCache = new LRUCache<string, string[]>({
ttl: 1000 * 60 * 24,
ttl: 1000 * 60 * 24, // 24 minutes
ttlAutopurge: true,
});

Expand Down

0 comments on commit 1754a5c

Please sign in to comment.