mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Don't include user_deleted posts in emails.
This commit is contained in:
@@ -110,6 +110,7 @@ class UserNotifications < ActionMailer::Base
|
|||||||
context = ""
|
context = ""
|
||||||
context_posts = Post.where(topic_id: @post.topic_id)
|
context_posts = Post.where(topic_id: @post.topic_id)
|
||||||
.where("post_number < ?", @post.post_number)
|
.where("post_number < ?", @post.post_number)
|
||||||
|
.where(user_deleted: false)
|
||||||
.order('created_at desc')
|
.order('created_at desc')
|
||||||
.limit(SiteSetting.email_posts_context)
|
.limit(SiteSetting.email_posts_context)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user