sfdsfd
This commit is contained in:
parent
3bbe195b75
commit
3aae15d985
28 changed files with 245 additions and 142 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue