mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: post_destroyed webhook event not fired
This commit is contained in:
parent
6287631745
commit
e700e3e882
@ -33,7 +33,7 @@ module Jobs
|
|||||||
end
|
end
|
||||||
|
|
||||||
def setup_post(args)
|
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?
|
return if post.blank?
|
||||||
args[:payload] = WebHookPostSerializer.new(post, scope: guardian, root: false).as_json
|
args[:payload] = WebHookPostSerializer.new(post, scope: guardian, root: false).as_json
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user