]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/notes_controller.rb
Rewrite changeset download show test
[rails.git] / app / controllers / notes_controller.rb
index 574c9b8b7d512ba745964711bd76f13fbe2f4631..fbeb01b76425b890f4b69dd603ddf96e255abf8c 100644 (file)
@@ -43,7 +43,7 @@ class NotesController < ApplicationController
 
     @note_includes_anonymous = @note.author.nil? || @note_comments.find { |comment| comment.author.nil? }
 
-    @note_comments = @note_comments.drop(1) unless !@note.author.nil? && @note.author.status == "deleted"
+    @note_comments = @note_comments.drop(1) if @note_comments.first&.event == "opened"
   rescue ActiveRecord::RecordNotFound
     render :template => "browse/not_found", :status => :not_found
   end