X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bde5fb48dbe2159f6f631ea6ed3604c97412f7c6..9143fd61e8ae268ec40837efdb2b7cae49783b4d:/app/views/notes/index.html.erb diff --git a/app/views/notes/index.html.erb b/app/views/notes/index.html.erb index f805a1040..4bd7d499d 100644 --- a/app/views/notes/index.html.erb +++ b/app/views/notes/index.html.erb @@ -48,7 +48,7 @@ <%= link_to note.id, note %> <%= note_author(note.author) %> - <%= note.description.to_html %> + <%= note_description(note.author, note.description, current_user&.moderator? ? note.comments.unscope(:where => :visible).first : note.comments.first).to_html %> <%= friendly_date_ago(note.created_at) %> <%= friendly_date_ago(note.updated_at) %>