X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5047ec403db94b0d371a9a10b56801bc0a3fcf0a..9143fd61e8ae268ec40837efdb2b7cae49783b4d:/app/views/notes/index.html.erb?ds=sidebyside 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) %>