X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/992755c0a62bfe29d5e99e8360519e9b507177f7..1f1a20e5399d957c8f45a36d5d880aac84a95d3f:/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 3d9b4a9ba..d0dcdeb1b 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -5,7 +5,7 @@

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

- <%= h(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 %>
@@ -22,7 +22,7 @@

- <% if @note_comments.find { |comment| comment.author.nil? } -%> + <% if @note_includes_anonymous -%>

<%= t ".anonymous_warning" %>

<% end -%> @@ -52,10 +52,10 @@ <% end %>
- <% if @note_comments.length > 1 %> + <% if @note_comments.length > 0 %>