X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cd922a99f8a86859ecdc84176acd394d1b7e1db4..7c9229fbfca70f65cc587129b18f1de4d993f9e2:/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?