From 908e67482c7816efcde842b50faa5255ee823a40 Mon Sep 17 00:00:00 2001 From: Logan Fick Date: Thu, 12 Oct 2017 17:22:02 -0400 Subject: Fixed the ability to receive reply emails on threads a user can no longer read. --- app/models/threadreply.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3