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
This commit is contained in:
Peter N Lewis 2014-06-06 21:16:41 +08:00
parent 72130357ed
commit d0ebdea5fa
1 changed files with 1 additions and 1 deletions

View File

@ -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)