From f45059b7b1decbb5719eb18cffbc02db2a3bcea7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 14 Jan 2023 10:46:40 +0900 Subject: [PATCH] fix --- packages/backend/src/server/api/endpoints/i/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index ef5ab16bc..fe09eca67 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -173,7 +173,7 @@ export default class extends Endpoint { if (ps.mutedWords !== undefined) { // TODO: ちゃんと数える const length = JSON.stringify(ps.mutedWords).length; - if (length > (await this.roleService.getUserRoleOptions(user.id)).antennaLimit) { + if (length > (await this.roleService.getUserRoleOptions(user.id)).wordMuteLimit) { throw new ApiError(meta.errors.tooManyMutedWords); }