mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-07-16 18:03:28 +00:00
FIX: Allow discord.com webhook URLs
This commit is contained in:
parent
fd51671991
commit
bb4143a695
@ -8,7 +8,7 @@ module DiscourseChat
|
|||||||
|
|
||||||
CHANNEL_PARAMETERS = [
|
CHANNEL_PARAMETERS = [
|
||||||
{ key: "name", regex: '^\S+' },
|
{ key: "name", regex: '^\S+' },
|
||||||
{ key: "webhook_url", regex: '^https:\/\/discordapp\.com\/api\/webhooks\/', unique: true, hidden: true }
|
{ key: "webhook_url", regex: '^https:\/\/discord(?:app)?\.com\/api\/webhooks\/', unique: true, hidden: true }
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
def self.send_message(url, message)
|
def self.send_message(url, message)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user