1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-28 06:48:32 +09:00

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

This commit is contained in:
syuilo 2022-06-14 22:59:19 +09:00
parent f1e6fa8ee2
commit e4dc25dd5c

View File

@ -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) {