mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-27 08:06:48 +01:00
管理者やモデレーターはレートリミット無効に
This commit is contained in:
parent
08221fdda7
commit
4d2e98af7b
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ export default async (endpoint: string, user: User | null | undefined, app: App
|
|||
});
|
||||
}
|
||||
|
||||
if (ep.meta.requireCredential && ep.meta.limit) {
|
||||
if (ep.meta.requireCredential && ep.meta.limit && !user!.isAdmin && !user!.isModerator) {
|
||||
// Rate limit
|
||||
await limiter(ep, user!).catch(e => {
|
||||
throw new ApiError({
|
||||
|
|
Loading…
Reference in a new issue