X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/56798e94358c2943b2b269513e5479e4d5a48000..37b03e47c6b616ea51329f57afb41ee2cf9eceb2:/app/controllers/diary_entries_controller.rb diff --git a/app/controllers/diary_entries_controller.rb b/app/controllers/diary_entries_controller.rb index 5f53e81b6..12f31bad2 100644 --- a/app/controllers/diary_entries_controller.rb +++ b/app/controllers/diary_entries_controller.rb @@ -81,7 +81,7 @@ class DiaryEntriesController < ApplicationController # Notify current subscribers of the new comment @entry.subscribers.visible.each do |user| - Notifier.diary_comment_notification(@diary_comment, user).deliver_later if current_user != user + UserMailer.diary_comment_notification(@diary_comment, user).deliver_later if current_user != user end # Add the commenter to the subscribers if necessary