diff --git a/files/routes/comments.py b/files/routes/comments.py index 145a6af0f2..8e36c7567d 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -159,7 +159,8 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None, sub=None): return render_template(template, v=v, p=post, sort=sort, comment_info=comment_info, render_replies=True, sub=post.subr) @app.post("/comment") -@limiter.limit("1/second;20/minute;200/hour;1000/day") +@limiter.limit("1/day") +@limiter.limit("1/day", key_func=lambda:f'{request.host}-{egg}') @auth_required def api_comment(v): if v.is_suspended: return {"error": "You can't perform this action while banned."}, 403