summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan Fick <logaldeveloper@protonmail.com>2017-10-12 17:22:02 -0400
committerLogan Fick <logaldeveloper@protonmail.com>2017-10-12 17:22:02 -0400
commit908e67482c7816efcde842b50faa5255ee823a40 (patch)
treef281210d1e6089fcbd56f6f7ba539e801fd4244a
parent170f7bad549dfce62fedc4525bbca0e5c5a887a0 (diff)
Fixed the ability to receive reply emails on threads a user can no longer read.
-rw-r--r--app/models/threadreply.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/threadreply.rb b/app/models/threadreply.rb
index f285073..aca7770 100644
--- a/app/models/threadreply.rb
+++ b/app/models/threadreply.rb
@@ -43,7 +43,7 @@ class Threadreply < ActiveRecord::Base
unless old_content.present?
posts.each do |post|
# 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?
end
end