From 8f060242bb42788d35baea4cd62ed1cb10db0604 Mon Sep 17 00:00:00 2001 From: BlenderDumbass Date: Wed, 4 Dec 2024 01:42:54 +0200 Subject: [PATCH] Limiting bots from commenting --- modules/Render.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/Render.py b/modules/Render.py index 8307b14..85ae9c2 100644 --- a/modules/Render.py +++ b/modules/Render.py @@ -1740,7 +1740,7 @@ def CommentEditInput(server, comment, url, n=0, user=None, request=None): return html def Comment(comment, url, n=0, user=None, request=False): - + if not request: html = '
' else: @@ -2182,6 +2182,11 @@ def UpdatePublicationRights(server): def DoComment(server): + # Limiting bots from commenting + if not server.cookie: + AccessDenied() + return + user = validate(server.cookie) Accounts = accounts()