increase edit_comment ratelimit

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-19 19:16:18 +02:00
parent d9cdbd0015
commit 14ffb39ba6
1 changed files with 2 additions and 2 deletions

View File

@ -647,8 +647,8 @@ def api_comment(v):
@app.post("/edit_comment/<cid>")
@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):