mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
|
post = Post.where(id: args[:post_id]).first
|
||||||
return unless post.present?
|
return unless post.present?
|
||||||
|
|
||||||
|
# Topic may be deleted
|
||||||
|
return unless post.topic
|
||||||
|
|
||||||
# Don't email posts that were deleted
|
# Don't email posts that were deleted
|
||||||
return if post.user_deleted?
|
return if post.user_deleted?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user