forked from rDrama/rDrama
fsd
parent
4abc9a7497
commit
65b3a5d375
|
@ -160,7 +160,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None, sub=None):
|
||||||
|
|
||||||
@app.post("/comment")
|
@app.post("/comment")
|
||||||
@limiter.limit("1/day")
|
@limiter.limit("1/day")
|
||||||
@limiter.limit("1/day", key_func=lambda:f'{request.host}-{egg}')
|
@limiter.limit("1/day", key_func=lambda:f'{request.host}-{session.get("lo_user")}')
|
||||||
@auth_required
|
@auth_required
|
||||||
def api_comment(v):
|
def api_comment(v):
|
||||||
if v.is_suspended: return {"error": "You can't perform this action while banned."}, 403
|
if v.is_suspended: return {"error": "You can't perform this action while banned."}, 403
|
||||||
|
|
Loading…
Reference in New Issue