SPEC: make sure digest doesn't pick any topics in categories that are muted

This commit is contained in:
Régis Hanol
2014-11-03 16:57:50 +01:00
parent a7fa1b33e5
commit fd5677808c
4 changed files with 34 additions and 32 deletions

View File

@@ -250,9 +250,7 @@ class UserNotifications < ActionMailer::Base
)
template = "user_notifications.user_#{notification_type}"
if post.topic.private_message?
template << "_pm"
end
template << "_pm" if post.topic.private_message?
email_opts = {
topic_title: title,