Fixed the ability to receive reply emails on threads a user can no longer read.

This commit is contained in:
Logan Fick
2017-10-12 17:22:02 -04:00
parent 170f7bad54
commit 908e67482c

View File

@@ -43,7 +43,7 @@ class Threadreply < ActiveRecord::Base
unless old_content.present? unless old_content.present?
posts.each do |post| posts.each do |post|
# don't send mail to the author of this reply, don't send to banned/disabled users # don't send mail to the author of this reply, don't send to banned/disabled users
if post.author != author && post.author.normal? && post.author.confirmed? # && if post.author != author && post.author.normal? && post.author.confirmed? && thread.can_read?(post.author)
users << post.author if post.author.mail_other_thread_reply? users << post.author if post.author.mail_other_thread_reply?
end end
end end