mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 02:53:38 +08:00
FIX: post_destroyed webhook event not fired
This commit is contained in:
parent
6287631745
commit
e700e3e882
|
@ -33,7 +33,7 @@ module Jobs
|
|||
end
|
||||
|
||||
def setup_post(args)
|
||||
post = Post.find_by(id: args[:post_id])
|
||||
post = Post.with_deleted.find_by(id: args[:post_id])
|
||||
return if post.blank?
|
||||
args[:payload] = WebHookPostSerializer.new(post, scope: guardian, root: false).as_json
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user