We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cecb8d6 commit d0ccb60Copy full SHA for d0ccb60
1 file changed
scripts/comments/comments.py
@@ -181,6 +181,11 @@ def post(self):
181
#if users.get_current_user():
182
# comment.user = users.get_current_user()
183
184
+ # 20/07/2023: Disable comments on root as most spam there
185
+ if comment.page == '/':
186
+ self.redirect('#commentform')
187
+ return
188
+
189
if self.request.get('scheck') != '4' + '0':
190
self.redirect('#commentform')
191
return
0 commit comments