mentioning fixes

This commit is contained in:
jomo
2014-07-06 05:07:30 +02:00
parent b1d797ce06
commit d385136114
5 changed files with 5 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ class Threadreply < ActiveRecord::Base
mails = []
new_mentions.each do |user|
begin
mails << RedstonerMailer.new_thread_reply_mention_mail(user, self)
mails << RedstonerMailer.new_thread_reply_mention_mail(user, self) if user.normal? && user.confirmed? && user.mail_mention?
rescue => e
Rails.logger.error "---"
Rails.logger.error "WARNING: Failed to create new_thread_reply_mention_mail (view) for reply#: #{@self.id}, user: #{@user.name}, #{@user.email}"