mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
FEATURE: Allow chat incoming webhooks to work without .json
extension (#31497)
This provides a slightly nicer-looking URL, and also helps when external systems have strict validations on the webhook URL.
This commit is contained in:
@ -19,7 +19,7 @@ module Chat
|
||||
validates :emoji, length: { maximum: 100 }
|
||||
|
||||
def url
|
||||
"#{Discourse.base_url}/chat/hooks/#{key}.json"
|
||||
"#{Discourse.base_url}/chat/hooks/#{key}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user