1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-28 06:48:45 +09:00

Delay e-mail notifications by 2 minutes (#8438)

Fix #8430
This commit is contained in:
Eugen Rochko 2018-08-26 16:53:19 +02:00 committed by GitHub
parent b378b4c5c7
commit 55c856c522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ class NotifyService < BaseService
def send_email def send_email
return if @notification.activity.nil? 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 end
def email_enabled? def email_enabled?