X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a16c1138e9c061f83accca1b433aeebaf882758f..1f1a20e5399d957c8f45a36d5d880aac84a95d3f:/app/views/notes/index.html.erb?ds=inline diff --git a/app/views/notes/index.html.erb b/app/views/notes/index.html.erb index 0b39234a9..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(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) %>