diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html index bc41bd1..027592e 100644 --- a/nyaa/templates/view.html +++ b/nyaa/templates/view.html @@ -175,7 +175,7 @@
{# Escape newlines into html entities because CF strips blank newlines #}
{{- comment.text | escape | replace('\r\n', '\n') | replace('\n', ' '|safe) -}}
- {% if g.user.id == comment.user_id %} + {% if g.user.id == comment.user_id and comment_form %}
{{ comment_form.csrf_token }}