BUGFIX: Use email sender

This commit is contained in:
Sam 2014-02-09 07:29:16 +11:00
parent 87a07e2355
commit 56e09802fe
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ module Jobs
)', post.topic.category_id, CategoryUser.notification_levels[:muted])
.each do |user|
if Guardian.new(user).can_see?(post)
UserNotifications.mailing_list_notify(user, post).deliver
message = UserNotifications.mailing_list_notify(user, post)
Email::Sender.new(message, :mailing_list, user).send
end
end