X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/50224b473bce736436d27c64bd46c1910e4d43ec..0a3087cd7dbf3c4ce98afe9e086aca50d19325cd:/app/controllers/map_bugs_controller.rb diff --git a/app/controllers/map_bugs_controller.rb b/app/controllers/map_bugs_controller.rb index 41881cfb7..a967384b6 100644 --- a/app/controllers/map_bugs_controller.rb +++ b/app/controllers/map_bugs_controller.rb @@ -206,7 +206,7 @@ class MapBugsController < ApplicationController def my_bugs if params[:display_name] - @user2 = User.find_by_display_name(params[:display_name], :conditions => { :visible => true }) + @user2 = User.find_by_display_name(params[:display_name], :conditions => { :status => ["active", "confirmed"] }) if @user2 if @user2.data_public? or @user2 == @user @@ -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