forked from FoundKeyGang/FoundKey
管理者やモデレーターはレートリミット無効に
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