increase edit_comment ratelimit
parent
d9cdbd0015
commit
14ffb39ba6
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in New Issue