This commit is contained in:
Aevann1 2021-12-09 23:21:52 +02:00
parent 3bbe195b75
commit 3aae15d985
28 changed files with 245 additions and 142 deletions

View file

@ -234,6 +234,7 @@ def shop(v):
@app.post("/buy/<award>")
@auth_required
@validate_formkey
def buy(v, award):
AWARDS = {
"shit": {
@ -446,6 +447,7 @@ def buy(v, award):
@app.post("/post/<pid>/awards")
@limiter.limit("1/second")
@auth_required
@validate_formkey
def award_post(pid, v):
if v.shadowbanned: return render_template('errors/500.html', v=v), 500
@ -603,6 +605,7 @@ def award_post(pid, v):
@app.post("/comment/<cid>/awards")
@limiter.limit("1/second")
@auth_required
@validate_formkey
def award_comment(cid, v):
if v.shadowbanned: return render_template('errors/500.html', v=v), 500