mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
adding skip
This commit is contained in:
@@ -229,6 +229,10 @@ func handlePostEventsAndForget(c *Context, post *model.Post, triggerWebhooks boo
|
|||||||
|
|
||||||
func handleWebhookEventsAndForget(c *Context, post *model.Post, team *model.Team, channel *model.Channel, user *model.User) {
|
func handleWebhookEventsAndForget(c *Context, post *model.Post, team *model.Team, channel *model.Channel, user *model.User) {
|
||||||
go func() {
|
go func() {
|
||||||
|
if !utils.Cfg.ServiceSettings.EnableOutgoingWebhooks {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if channel.Type != model.CHANNEL_OPEN {
|
if channel.Type != model.CHANNEL_OPEN {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user