From 4ee523e2c0ca6bf254ee8d353f0483180cb3bf38 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Thu, 19 Sep 2024 15:59:06 +0100 Subject: [PATCH] increase to 10 --- src/protections/MentionSpam.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protections/MentionSpam.ts b/src/protections/MentionSpam.ts index e52c55d6..c230018d 100644 --- a/src/protections/MentionSpam.ts +++ b/src/protections/MentionSpam.ts @@ -19,13 +19,13 @@ import { Mjolnir } from "../Mjolnir"; import { LogLevel, Permalinks, UserID } from "matrix-bot-sdk"; import { NumberProtectionSetting } from "./ProtectionSettings"; -export const DEFAULT_MAX_MENTIONS = 8; +export const DEFAULT_MAX_MENTIONS = 10; const USER_ID_REGEX = /@[^:]*:.+/; export class MentionSpam extends Protection { settings = { - maxMentions: new NumberProtectionSetting(DEFAULT_MAX_MENTIONS), + maxMentionsRedact: new NumberProtectionSetting(DEFAULT_MAX_MENTIONS), }; constructor() {