fix: hard mute limit not applied (#12428)
* fix: hard mute limit not applied * Update CHANGELOG.md
This commit is contained in:
parent
f7bdf5a2c0
commit
536f08c401
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue