diff options
| author | Bobby <[email protected]> | 2024-06-06 18:25:39 +0000 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-06-06 18:25:39 +0000 |
| commit | d1fb79f5a78debea12f16ac6f217b978fea99832 (patch) | |
| tree | 9833d24c56da1ca5d0b47d75f87973b5d32249d0 /templates | |
| parent | debfb4676328d587d31d44cc679c3d382fadd6ed (diff) | |
| download | thatcomputerscientist-d1fb79f5a78debea12f16ac6f217b978fea99832.tar.xz thatcomputerscientist-d1fb79f5a78debea12f16ac6f217b978fea99832.zip | |
Better Spam Filtering + Anonymous Spam Fix
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/blog/post.html | 7 |
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"> |
