Archived
don't send mails to unconfirmed accounts
This commit is contained in:
@@ -36,10 +36,12 @@ class Threadreply < ActiveRecord::Base
|
|||||||
userids = []
|
userids = []
|
||||||
|
|
||||||
# thread + replies
|
# thread + replies
|
||||||
(thread.replies.to_a << thread).each do |post|
|
posts = thread.replies.to_a
|
||||||
# don't send mail to the user who wrote this, don't send to banned/disabled users
|
posts << thread # if thread.author.send_own_thread_reply_mail (TODO)
|
||||||
if post.author != author && post.author.normal? # && user.send_threadreply_mail (TODO)
|
posts.each do |post|
|
||||||
userids << post.author.id
|
# don't send mail to the author, don't send to banned/disabled users
|
||||||
|
if post.author != author && post.author.normal? && post.author.confirmed? # &&
|
||||||
|
userids << post.author.id # && post.author.send_replied_reply_mail (TODO)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# making sure we don't send multiple mails to the same user
|
# making sure we don't send multiple mails to the same user
|
||||||
|
|||||||
Reference in New Issue
Block a user