diff --git a/files/templates/comments.html b/files/templates/comments.html index ebfa25735..08b46b24b 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -113,7 +113,7 @@ {% set isreply = False %} {% endif %} -{% set highlight_for_profile = request.path.startswith('/@') and request.path.endswith('/comments') and c.author_id == u.id %} +{% set highlight_for_profile = request.path.startswith('/@') and request.path.endswith('/comments') and u and c.author_id == u.id %}
{% if not isreply %}