Bugfix: Mailing list mode disables PM emails (take 2)
Mailing List Mode disables normal emails, but mailing list mode does not email private_messages. To avoid this, mailing list mode should only disable emails if they are not private_messages. There are no tests for this commit as UserNotifications does not appear to be instantiated in the spec suite.
This commit is contained in:
parent
72130357ed
commit
f9830fb480
|
@ -153,7 +153,7 @@ class UserNotifications < ActionMailer::Base
|
|||
username = @notification.data_hash[:original_username]
|
||||
notification_type = opts[:notification_type] || Notification.types[@notification.notification_type].to_s
|
||||
|
||||
return if user.mailing_list_mode &&
|
||||
return if user.mailing_list_mode && !@post.topic.private_message? &&
|
||||
["replied", "mentioned", "quoted", "posted"].include?(notification_type)
|
||||
|
||||
title = @notification.data_hash[:topic_title]
|
||||
|
|
Loading…
Reference in New Issue