X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6f9dfc667bfd2d4ac0d14f061dc2e29b2bde7f19..837924027a804a1a31ae1a2a3958c8e27e402a5e:/app/views/notes/show.html.erb?ds=sidebyside diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index b65926b5f..d0dcdeb1b 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -5,7 +5,7 @@

<%= t(".description") %>

- <%= 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 %>