mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Don't include user_deleted
posts in emails.
This commit is contained in:
parent
e5da3ed41c
commit
9564a6ce09
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue