diff --git a/packages/backend/src/misc/check-word-mute.ts b/packages/backend/src/misc/check-word-mute.ts index 08ec97751e..61047de19f 100644 --- a/packages/backend/src/misc/check-word-mute.ts +++ b/packages/backend/src/misc/check-word-mute.ts @@ -19,7 +19,9 @@ function checkWordMute( ): boolean { if (note == null) return false; - const text = `${note.cw ?? ""} ${note.text ?? ""} ${note.files.map((f) => f.comment ?? "").join(" ")}`.trim(); + const text = `${note.cw ?? ""} ${note.text ?? ""} ${note.files + .map((f) => f.comment ?? "") + .join(" ")}`.trim(); if (text === "") return false; for (const mutePattern of mutedWords) { diff --git a/packages/client/src/scripts/check-word-mute.ts b/packages/client/src/scripts/check-word-mute.ts index de0414a363..c2943d6ae4 100644 --- a/packages/client/src/scripts/check-word-mute.ts +++ b/packages/client/src/scripts/check-word-mute.ts @@ -10,7 +10,9 @@ function checkWordMute( note: NoteLike, mutedWords: Array, ): Muted { - const text = `${note.cw ?? ""} ${note.text ?? ""} ${note.files.map((f) => f.comment ?? "").join(" ")}`.trim(); + const text = `${note.cw ?? ""} ${note.text ?? ""} ${note.files + .map((f) => f.comment ?? "") + .join(" ")}`.trim(); if (text === "") return NotMuted; let result = { muted: false, matched: [] };