From 0df6dbd9197834fa59e64e157432ef94324e58fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A1=E3=82=83=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Mon, 12 Feb 2024 06:13:39 +0900 Subject: [PATCH] =?UTF-8?q?spec(backend):=20=E3=83=AA=E3=83=A2=E3=83=BC?= =?UTF-8?q?=E3=83=88=E3=81=AE=E6=8A=95=E7=A8=BF=E3=81=AB=E3=82=82=E7=A6=81?= =?UTF-8?q?=E6=AD=A2=E3=83=AF=E3=83=BC=E3=83=89=E3=82=92=E9=81=A9=E7=94=A8?= =?UTF-8?q?=20(MisskeyIO#437)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/NoteCreateService.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index 6f048b1c44..ef5a059876 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -268,10 +268,8 @@ export class NoteCreateService implements OnApplicationShutdown { } } - if (!user.host) { - if (this.utilityService.isKeyWordIncluded(data.cw ?? data.text ?? '', meta.prohibitedWords)) { - throw new IdentifiableError('057d8d3e-b7ca-4f8b-b38c-dcdcbf34dc30'); - } + if (this.utilityService.isKeyWordIncluded(data.cw ?? data.text ?? '', meta.prohibitedWords)) { + throw new IdentifiableError('057d8d3e-b7ca-4f8b-b38c-dcdcbf34dc30'); } const inSilencedInstance = this.utilityService.isSilencedHost(meta.silencedHosts, user.host);