diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-15 16:52:12 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-15 16:52:12 +0900 |
| commit | 7fc8d2e6d5cc0d34c4188af94c4c66ac70e1ee9f (patch) | |
| tree | 7e292e345fc8bf7dee8461b3e3adbd46b452dc78 /packages/backend/src/core/RoleService.ts | |
| parent | Update actions/github-script (#9588) (diff) | |
| download | misskey-7fc8d2e6d5cc0d34c4188af94c4c66ac70e1ee9f.tar.gz misskey-7fc8d2e6d5cc0d34c4188af94c4c66ac70e1ee9f.tar.bz2 misskey-7fc8d2e6d5cc0d34c4188af94c4c66ac70e1ee9f.zip | |
ロールでレートリミットを調整できるように
Resolve #9584
Diffstat (limited to 'packages/backend/src/core/RoleService.ts')
| -rw-r--r-- | packages/backend/src/core/RoleService.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/backend/src/core/RoleService.ts b/packages/backend/src/core/RoleService.ts index 13fbfaf418..9fd612c96e 100644 --- a/packages/backend/src/core/RoleService.ts +++ b/packages/backend/src/core/RoleService.ts @@ -28,6 +28,7 @@ export type RoleOptions = { noteEachClipsLimit: number; userListLimit: number; userEachUserListsLimit: number; + rateLimitFactor: number; }; export const DEFAULT_ROLE: RoleOptions = { @@ -45,6 +46,7 @@ export const DEFAULT_ROLE: RoleOptions = { noteEachClipsLimit: 200, userListLimit: 10, userEachUserListsLimit: 50, + rateLimitFactor: 1, }; @Injectable() @@ -221,6 +223,7 @@ export class RoleService implements OnApplicationShutdown { noteEachClipsLimit: Math.max(...getOptionValues('noteEachClipsLimit')), userListLimit: Math.max(...getOptionValues('userListLimit')), userEachUserListsLimit: Math.max(...getOptionValues('userEachUserListsLimit')), + rateLimitFactor: Math.max(...getOptionValues('rateLimitFactor')), }; } |