forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-05-03 03:39:20 +02:00
parent 4abc9a7497
commit 65b3a5d375
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None, sub=None):
@app.post("/comment")
@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
def api_comment(v):
if v.is_suspended: return {"error": "You can't perform this action while banned."}, 403