From de76f3722f84f83fe3d672e206ef5205e2c6ff20 Mon Sep 17 00:00:00 2001 From: Jess Lee Date: Tue, 9 Apr 2019 15:13:27 -0400 Subject: [PATCH] Do not require author for note to display (#2350) --- app/views/internal/users/_notes.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/internal/users/_notes.erb b/app/views/internal/users/_notes.erb index 310960583..b395f4452 100644 --- a/app/views/internal/users/_notes.erb +++ b/app/views/internal/users/_notes.erb @@ -2,7 +2,7 @@

Notes

<% if @user.notes.count > 0 %> <% @user.notes.each do |note| %> -

<%= note.created_at.strftime("%d %B %Y %H:%M UTC") %> by <%= User.find(note.author_id).username %> - +

<%= note.created_at.strftime("%d %B %Y %H:%M UTC") %> by <%= User.find(note.author_id).username if note.author_id.present? %> - <% if !note.reason.blank? %><%= note.reason %>: <% end %><%= note.content %>

<% end %>