Don't include `user_deleted` posts in emails.
This commit is contained in:
parent
e5da3ed41c
commit
9564a6ce09
|
@ -110,6 +110,7 @@ class UserNotifications < ActionMailer::Base
|
|||
context = ""
|
||||
context_posts = Post.where(topic_id: @post.topic_id)
|
||||
.where("post_number < ?", @post.post_number)
|
||||
.where(user_deleted: false)
|
||||
.order('created_at desc')
|
||||
.limit(SiteSetting.email_posts_context)
|
||||
|
||||
|
|
Loading…
Reference in New Issue