X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/91b3d1a83feba263cb4fe529fb76737f259107ac..92ce228cbe24ed030090823d2a4e92ee5089732c:/app/controllers/notes_controller.rb diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index fe3615d7a..95659a771 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -319,11 +319,11 @@ private attributes[:author_name] = name + " (a)" end - note.comments.create(attributes, :without_protection => true) + comment = note.comments.create(attributes, :without_protection => true) note.comments.map { |c| c.author }.uniq.each do |user| if user and user != @user - Notifier.deliver_note_comment_notification(comment, user) + Notifier.note_comment_notification(comment, user).deliver end end end