mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Rename approval web hook event type to queued post
This commit is contained in:
@@ -90,11 +90,11 @@ end
|
||||
end
|
||||
|
||||
%i(
|
||||
queued_post
|
||||
queued_post_created
|
||||
approved_post
|
||||
rejected_post
|
||||
).each do |event|
|
||||
DiscourseEvent.on(event) do |queued_post|
|
||||
WebHook.enqueue_object_hooks(:approval, queued_post, event, QueuedPostSerializer)
|
||||
WebHook.enqueue_object_hooks(:queued_post, queued_post, event, QueuedPostSerializer)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user