fdsfds
This commit is contained in:
parent
77df18682d
commit
e23771311d
12 changed files with 93 additions and 93 deletions
|
@ -50,7 +50,7 @@ def toggle_club(pid, v):
|
|||
|
||||
|
||||
@app.post("/publish/<pid>")
|
||||
@limiter.limit("1/0.5seconds")
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
def publish(pid, v):
|
||||
|
@ -189,7 +189,7 @@ def post_id(pid, anything=None, v=None):
|
|||
|
||||
|
||||
@app.post("/edit_post/<pid>")
|
||||
@limiter.limit("1/0.5seconds")
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
def edit_post(pid, v):
|
||||
|
@ -504,7 +504,7 @@ def thumbnail_thread(pid):
|
|||
|
||||
|
||||
@app.post("/submit")
|
||||
@limiter.limit("1/0.5seconds")
|
||||
@limiter.limit("1/second")
|
||||
@limiter.limit("6/minute")
|
||||
@is_not_banned
|
||||
@validate_formkey
|
||||
|
@ -962,7 +962,7 @@ def submit_post(v):
|
|||
|
||||
|
||||
@app.post("/delete_post/<pid>")
|
||||
@limiter.limit("1/0.5seconds")
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
def delete_post_pid(pid, v):
|
||||
|
@ -984,7 +984,7 @@ def delete_post_pid(pid, v):
|
|||
return {"message": "Post deleted!"}
|
||||
|
||||
@app.post("/undelete_post/<pid>")
|
||||
@limiter.limit("1/0.5seconds")
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
def undelete_post_pid(pid, v):
|
||||
|
@ -1043,7 +1043,7 @@ def toggle_post_nsfw(pid, v):
|
|||
else: return {"message": "Post has been unmarked as +18!"}
|
||||
|
||||
@app.post("/save_post/<pid>")
|
||||
@limiter.limit("1/0.5seconds")
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
def save_post(pid, v):
|
||||
|
@ -1060,7 +1060,7 @@ def save_post(pid, v):
|
|||
return {"message": "Post saved!"}
|
||||
|
||||
@app.post("/unsave_post/<pid>")
|
||||
@limiter.limit("1/0.5seconds")
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
@validate_formkey
|
||||
def unsave_post(pid, v):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue