summaryrefslogtreecommitdiff
path: root/design/templates/comments
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-11-19 21:36:44 -0500
committerluxagraf <sng@luxagraf.net>2020-11-19 21:36:44 -0500
commit18f1c49a0f729f43e83493479c456c90cf6bd11b (patch)
tree0f59865e621b6eed57fa28ef1998e225a9050f7c /design/templates/comments
parente796d847df0492391b1e7bde84fb564e49b75f79 (diff)
fixed comment spam loop so redirects to homepage.
Diffstat (limited to 'design/templates/comments')
-rw-r--r--design/templates/comments/posted.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/design/templates/comments/posted.html b/design/templates/comments/posted.html
index 9a478cf..e5fed65 100644
--- a/design/templates/comments/posted.html
+++ b/design/templates/comments/posted.html
@@ -13,7 +13,10 @@
document.getElementById('countdown').innerHTML = timeLeft;
if(timeLeft === 0){
clearInterval(cinterval);
- window.location="{{comment.content_object.get_absolute_url}}";
+ {% if not comment.content_object.get_absolute_url %}
+ window.location="/";
+ {% else%}
+ window.location="{{comment.content_object.get_absolute_url}}";{%endif%}
}
};