From fb4a0cd4e66687e6a1f6ad4cd92b2984a4fe2950 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 30 Jan 2022 15:45:06 +0200 Subject: [PATCH] fd --- 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 370a81131..7355a1d13 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -67,7 +67,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None): if request.headers.get("Authorization"): return {'error': 'This content is not suitable for some users and situations.'} else: render_template("errors/nsfw.html", v=v) - try: context = int(request.values.get("context", 0)) + try: context = min(int(request.values.get("context", 0)), 8) except: context = 0 comment_info = comment c = comment