Increase rate-limit on /del_report/.

master
Snakes 2022-07-08 20:46:44 -04:00
parent 13dfa370b1
commit 3416ed76e4
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ def api_flag_comment(cid, v):
@app.post('/del_report/post/<pid>/<uid>')
@limiter.limit("1/second;30/minute;200/hour;1000/day")
@limiter.limit("4/second;100/minute;300/hour;2000/day")
@admin_level_required(PERMS['FLAGS_REMOVE'])
def remove_report_post(v, pid, uid):
@ -131,7 +131,7 @@ def remove_report_post(v, pid, uid):
@app.post('/del_report/comment/<cid>/<uid>')
@limiter.limit("1/second;30/minute;200/hour;1000/day")
@limiter.limit("4/second;100/minute;300/hour;2000/day")
@admin_level_required(PERMS['FLAGS_REMOVE'])
def remove_report_comment(v, cid, uid):