]> cat aescling's git repositories - mastodon.git/commitdiff
Delay e-mail notifications by 2 minutes (#8438)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 26 Aug 2018 14:53:19 +0000 (16:53 +0200)
committerGitHub <noreply@github.com>
Sun, 26 Aug 2018 14:53:19 +0000 (16:53 +0200)
Fix #8430

app/services/notify_service.rb

index 6490d2735bc14e8d2cb1fd11444a2ea645852fcf..7d0dcc7ad7d71aa60faabcc2524b4debdaa739e9 100644 (file)
@@ -123,7 +123,7 @@ class NotifyService < BaseService
 
   def send_email
     return if @notification.activity.nil?
-    NotificationMailer.public_send(@notification.type, @recipient, @notification).deliver_later
+    NotificationMailer.public_send(@notification.type, @recipient, @notification).deliver_later(wait: 2.minutes)
   end
 
   def email_enabled?