This commit is contained in:
Aevann1 2022-02-04 16:58:13 +02:00
parent 60a9213fcb
commit 33b48e6ec1
3 changed files with 6 additions and 1 deletions

View file

@ -91,6 +91,7 @@ def publish(pid, v):
@app.get("/submit/<hole>")
@auth_required
def submit_get(v, hole=None):
if hole not in holes: hole = None
return render_template("submit.html", v=v, hole=hole)
@app.get("/post/<pid>")
@ -755,6 +756,7 @@ def thumbnail_thread(pid):
@limiter.limit("1/second;6/minute;200/hour;1000/day")
@auth_required
def submit_post(v, hole=None):
if hole not in holes: hole = None
if v.is_suspended: return {"error": "You can't perform this action while banned."}, 403
if v and v.patron: