From 35c8dbcfca36f43f3f2cc729791bf06d971471a2 Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 18 May 2023 20:50:24 +0900 Subject: [PATCH] format --- packages/backend/src/misc/check-word-mute.ts | 4 +++- packages/client/src/scripts/check-word-mute.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/misc/check-word-mute.ts b/packages/backend/src/misc/check-word-mute.ts index 08ec97751..61047de19 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 de0414a36..c2943d6ae 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: [] };