increase edit_post ratelimit so it doesnt fuck with drafts

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-09 20:09:18 +02:00
parent 63c16a867a
commit c100ed415c
1 changed files with 2 additions and 2 deletions

View File

@ -424,8 +424,8 @@ def morecomments(v, cid):
return render_template("comments.html", v=v, comments=comments, p=p, render_replies=True, ajax=True)
@app.post("/edit_post/<pid>")
@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_post(pid, v):
p = get_post(pid)