spec(backend): リモートの投稿にも禁止ワードを適用 (MisskeyIO#437)

This commit is contained in:
まっちゃとーにゅ 2024-02-12 06:13:39 +09:00 committed by GitHub
parent a69efd722a
commit 0df6dbd919
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -268,11 +268,9 @@ 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');
}
}
const inSilencedInstance = this.utilityService.isSilencedHost(meta.silencedHosts, user.host);