]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/notes_controller.rb
Get note comment notification working again
[rails.git] / app / controllers / notes_controller.rb
index fe3615d7a0965e4290a21b5eb47fc00c9203ac63..95659a77157112fd3c169ecc5948efd09b343334 100644 (file)
@@ -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