FIX: Relax validation for teams webhook urls to support custom domains (#56)
This commit is contained in:
parent
39edff4db4
commit
00ec1f486a
|
@ -5,7 +5,7 @@ module DiscourseChat::Provider::TeamsProvider
|
||||||
PROVIDER_ENABLED_SETTING = :chat_integration_teams_enabled
|
PROVIDER_ENABLED_SETTING = :chat_integration_teams_enabled
|
||||||
CHANNEL_PARAMETERS = [
|
CHANNEL_PARAMETERS = [
|
||||||
{ key: "name", regex: '^\S+$', unique: true },
|
{ key: "name", regex: '^\S+$', unique: true },
|
||||||
{ key: "webhook_url", regex: '^https:\/\/outlook\.office\.com\/webhook\/[A-Za-z0-9\-@\/]+\S+$', unique: true, hidden: true }
|
{ key: "webhook_url", regex: '^https:\/\/\S+$', unique: true, hidden: true }
|
||||||
]
|
]
|
||||||
|
|
||||||
def self.trigger_notification(post, channel, rule)
|
def self.trigger_notification(post, channel, rule)
|
||||||
|
|
Loading…
Reference in New Issue