X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e17b89e89fa932673f7dc2cf5a2fd3437ec0eda6..339d8e46ff1d5d58beb1d66e5be842b63bf858f6:/app/controllers/notes_controller.rb diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index fde27e8b2..13e930ca5 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -345,7 +345,7 @@ class NotesController < ApplicationController attributes[:author_ip] = request.remote_ip end - comment = note.comments.create(attributes) + comment = note.comments.create!(attributes) note.comments.map(&:author).uniq.each do |user| if notify && user && user != @user && user.visible?