Limiting bots from commenting
This commit is contained in:
parent
84d8eb4451
commit
8f060242bb
1 changed files with 6 additions and 1 deletions
|
@ -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 = '<div class="dark_box" id="comment_'+str(n)+'">'
|
||||
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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue