mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 20:24:47 +08:00
FEATURE: add outgoing web hooks for Chat messages
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Fabricator(:outgoing_chat_message_web_hook, from: :web_hook) do
|
||||
transient chat_message_hook: WebHookEventType.find_by(name: "chat_message")
|
||||
|
||||
after_build do |web_hook, transients|
|
||||
web_hook.web_hook_event_types = [transients[:chat_message_hook]]
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user