From bdc2323680094fa27b5500de2826abf2ec40c237 Mon Sep 17 00:00:00 2001 From: Deimos Date: Mon, 9 Sep 2019 12:02:02 -0600 Subject: [PATCH] Don't show votes on removed comments --- tildes/tildes/templates/macros/comments.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tildes/tildes/templates/macros/comments.jinja2 b/tildes/tildes/templates/macros/comments.jinja2 index d8d66bb..3f69204 100644 --- a/tildes/tildes/templates/macros/comments.jinja2 +++ b/tildes/tildes/templates/macros/comments.jinja2 @@ -94,7 +94,7 @@ {% if request.has_permission('view', comment) %} {# Show votes at the top only if it's your own comment #} - {% if request.user == comment.user and comment.num_votes > 0 %} + {% if request.user == comment.user and comment.num_votes > 0 and not comment.is_removed %}
{{ pluralize(comment.num_votes, "vote") }}
{% endif %}