diff --git a/files/templates/comments.html b/files/templates/comments.html index ebfa257359..08b46b24bd 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 %}