X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e7ed2635c3008bd14195c8ce76aeebca8663c4ed..0a3087cd7dbf3c4ce98afe9e086aca50d19325cd:/app/controllers/map_bugs_controller.rb diff --git a/app/controllers/map_bugs_controller.rb b/app/controllers/map_bugs_controller.rb index bbde2148f..a967384b6 100644 --- a/app/controllers/map_bugs_controller.rb +++ b/app/controllers/map_bugs_controller.rb @@ -311,7 +311,18 @@ private end bug_comment.save; bug.last_changed = t - bug.save + bug.save + + sent_to = Set.new; + bug.map_bug_comment.each do | cmt | + if cmt.user + unless sent_to.include?(cmt.user) + Notifier.deliver_bug_comment_notification(bug_comment, cmt.user) unless cmt.user == @user; + sent_to.add(cmt.user); + end + end + end + end end