X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/738e66afa6231390f52679fe8b343478643f5684..040f2c4fb356727e681aa90a2282590747ace2d1:/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 c88312665..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.comments.first.body.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) %>