]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
Use deliver_later for all email sending
[rails.git] / app / controllers / diary_entry_controller.rb
index 54fe4dd1dc44a425d98d17ac22959e9264b4f44d..6a3ec67551fe416f47099c22d1c2ff363470f11b 100644 (file)
@@ -65,7 +65,7 @@ class DiaryEntryController < ApplicationController
 
       # Notify current subscribers of the new comment
       @entry.subscribers.visible.each do |user|
-        Notifier.diary_comment_notification(@diary_comment, user).deliver_now if current_user != user
+        Notifier.diary_comment_notification(@diary_comment, user).deliver_later if current_user != user
       end
 
       # Add the commenter to the subscribers if necessary