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

enhance(server): モデレーターであってもレートリミットを有効に

parent f1e6fa8e
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ export default async (endpoint: string, user: CacheableLocalUser | null | undefi
throw new ApiError(accessDenied);
}
if (ep.meta.limit && !isModerator) {
if (ep.meta.limit) {
// koa will automatically load the `X-Forwarded-For` header if `proxy: true` is configured in the app.
let limitActor: string;
if (user) {
......
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