From 65b3a5d37599bbfc6f5678f3fb12795c1a3bce34 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 3 May 2022 03:39:20 +0200 Subject: [PATCH] fsd --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 8e36c7567d..56aadfb5b5 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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