From 7b1e86a08cd8549f694cd7dc17aa62833f65155d Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Sun, 15 Nov 2015 19:24:06 -0800 Subject: adding skip --- api/post.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'api/post.go') diff --git a/api/post.go b/api/post.go index dee26516f..ef70e1336 100644 --- a/api/post.go +++ b/api/post.go @@ -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) { go func() { + if !utils.Cfg.ServiceSettings.EnableOutgoingWebhooks { + return + } + if channel.Type != model.CHANNEL_OPEN { return } -- cgit v1.2.3-1-g7c22