aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-06-06 18:25:39 +0000
committerBobby <[email protected]>2024-06-06 18:25:39 +0000
commitd1fb79f5a78debea12f16ac6f217b978fea99832 (patch)
tree9833d24c56da1ca5d0b47d75f87973b5d32249d0 /templates
parentdebfb4676328d587d31d44cc679c3d382fadd6ed (diff)
downloadthatcomputerscientist-d1fb79f5a78debea12f16ac6f217b978fea99832.tar.xz
thatcomputerscientist-d1fb79f5a78debea12f16ac6f217b978fea99832.zip
Better Spam Filtering + Anonymous Spam Fix
Diffstat (limited to 'templates')
-rw-r--r--templates/blog/post.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/blog/post.html b/templates/blog/post.html
index 8da852a4..f4fec7b9 100644
--- a/templates/blog/post.html
+++ b/templates/blog/post.html
@@ -252,6 +252,13 @@ background: #ffffff0d;
{% else %}
<div id="new-comment" class="mtsbitem">
<h2>Leave a Comment</h2>
+ {% if messages %}
+ {% for message in messages %}
+ {% if 'spam' in message.tags %}
+ <p style="color: #ffb6b6;">Your comment was not allowed as it was marked as possible spam. If you think this is a mistake, please contact me at <a href="mailto:[email protected]">[email protected]</a>.</p>
+ {% endif %}
+ {% endfor %}
+ {% endif %}
<p id="ancmClick">You must be <em>logged in</em> to leave a comment. Or, you can <a href="javascript:;" onclick="toggleAnon()">leave an anonymous comment</a>.</p>
<div id="anonymous-comment-form" style="display: none;">
<form action="{% url 'blog:anon_comment' post.slug %}" method="POST">