From 14ffb39ba636ab266166f0241a798a316de11934 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 19 Jun 2022 19:16:18 +0200 Subject: [PATCH] increase edit_comment ratelimit --- files/routes/comments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 736afd9bc..4edf58eaf 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -647,8 +647,8 @@ def api_comment(v): @app.post("/edit_comment/") -@limiter.limit("1/second;10/minute;20/hour;50/day") -@limiter.limit("1/second;10/minute;20/hour;50/day", key_func=lambda:f'{request.host}-{session.get("lo_user")}') +@limiter.limit("1/second;10/minute;100/hour;200/day") +@limiter.limit("1/second;10/minute;100/hour;200/day", key_func=lambda:f'{request.host}-{session.get("lo_user")}') @auth_required def edit_comment(cid, v):