fix: hard mute limit not applied (#12428)

* fix: hard mute limit not applied

* Update CHANGELOG.md
This commit is contained in:
anatawa12
2023-11-24 15:09:25 +09:00
committed by GitHub
parent f7bdf5a2c0
commit 536f08c401
2 changed files with 2 additions and 1 deletions

View File

@@ -243,7 +243,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
function checkMuteWordCount(mutedWords: (string[] | string)[], limit: number) {
// TODO: ちゃんと数える
const length = JSON.stringify(ps.mutedWords).length;
const length = JSON.stringify(mutedWords).length;
if (length > limit) {
throw new ApiError(meta.errors.tooManyMutedWords);
}