mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 17:59:20 +00:00
deleted topics get no notifications
This commit is contained in:
parent
6974ad487c
commit
723df0b964
@ -27,6 +27,9 @@ module Jobs
|
||||
post = Post.where(id: args[:post_id]).first
|
||||
return unless post.present?
|
||||
|
||||
# Topic may be deleted
|
||||
return unless post.topic
|
||||
|
||||
# Don't email posts that were deleted
|
||||
return if post.user_deleted?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user