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:
parent
72130357ed
commit
d0ebdea5fa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue