added template for spam posts, added spam filter, added new js to redirect
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<h2>Your comment is being posted...</h2>
|
||||
<p>Click <a href="/blog/post/{{ .Url }}">here</a> to return to the blog post.</p>
|
||||
<p>You will be redirected or, click <a href="/blog/post/{{ .Url }}">here</a> to return to the blog post.</p>
|
||||
<input value="{{ .Url }}" readonly style="display: none;" id="url"/>
|
||||
<script>
|
||||
setTimeout(() => {
|
||||
window.location.replace("/blog/post/" + document.getElementById("url").value)
|
||||
}, 1500)
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
5
templates/comment_post_spam.tmpl
Normal file
5
templates/comment_post_spam.tmpl
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<h2>You've commented too many times, too quickly. Your comment will <u>not</u> be posted.</h2>
|
||||
<p>Click <a href="/blog/post/{{ .Url }}">here</a> to return to the post.<p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user