Skip to content
Snippets Groups Projects
Commit f45059b7 authored by syuilo's avatar syuilo
Browse files

fix

parent d0aee585
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment