]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/notes_controller.rb
Don't send note comment notifications to deleted users
[rails.git] / app / controllers / notes_controller.rb
index 59dd025e8280f7a60b0668fb57e8fa222457815c..e73b2ba035b4e66339bc45754f2d9c2d0c5d698a 100644 (file)
@@ -350,7 +350,7 @@ class NotesController < ApplicationController
     comment = note.comments.create(attributes)
 
     note.comments.map(&:author).uniq.each do |user|
-      if notify && user && user != @user
+      if notify && user && user != @user && user.visible?
         Notifier.note_comment_notification(comment, user).deliver_now
       end
     end