X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b935cd6fef56934c432bdce4c78a1c64b60755d1..a05692a3f6f0be293ff73aec04b32fcaf76f97ce:/app/controllers/api/notes_controller.rb?ds=sidebyside diff --git a/app/controllers/api/notes_controller.rb b/app/controllers/api/notes_controller.rb index 9a00814f5..c141bdf46 100644 --- a/app/controllers/api/notes_controller.rb +++ b/app/controllers/api/notes_controller.rb @@ -401,6 +401,8 @@ module Api note.comments.map(&:author).uniq.each do |user| UserMailer.note_comment_notification(comment, user).deliver_later if notify && user && user != current_user && user.visible? end + + NoteSubscription.find_or_create_by(:note => note, :user => current_user) if current_user end end end