From 38f9b49a364f202c9f829ee3487f34071997156d Mon Sep 17 00:00:00 2001 From: Peter Bhat Harkins Date: Fri, 15 Mar 2024 13:38:40 -0500 Subject: [PATCH] may not have a user --- app/views/comments/_threads.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comments/_threads.html.erb b/app/views/comments/_threads.html.erb index 4c33c3847..18b942dc0 100644 --- a/app/views/comments/_threads.html.erb +++ b/app/views/comments/_threads.html.erb @@ -168,7 +168,7 @@ <%# mods shouldn't see usernames for people flagging them %> <% if comment.user_id == @user&.id %> | <%= comment.vote_summary_for_user %> - <% elsif @user.is_moderator? %> + <% elsif @user&.is_moderator? %> | <%= comment.vote_summary_for_moderator %> <% end %> <% elsif comment.current_flagged? %>