From d0ebdea5fa88316337b73488105b231ca8477314 Mon Sep 17 00:00:00 2001 From: Peter N Lewis Date: Fri, 6 Jun 2014 21:16:41 +0800 Subject: [PATCH] Honor email_always even if notification has been read Even if the notification has been read, send it by email if user has enabled email_always --- app/jobs/regular/user_email.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/regular/user_email.rb b/app/jobs/regular/user_email.rb index 912019db7e3..67f299eabda 100644 --- a/app/jobs/regular/user_email.rb +++ b/app/jobs/regular/user_email.rb @@ -46,7 +46,7 @@ module Jobs email_args[:post] ||= notification.post email_args[:notification] = notification - return skip(I18n.t('email_log.notification_already_read')) if notification.read? + return skip(I18n.t('email_log.notification_already_read')) if notification.read? && !@user.email_always end skip_reason = skip_email_for_post(email_args[:post], @user)