diff options
author | =Corey Hulen <corey@hulen.com> | 2015-11-15 19:24:06 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-11-15 19:24:06 -0800 |
commit | 7b1e86a08cd8549f694cd7dc17aa62833f65155d (patch) | |
tree | 0abe70e1dc88428cd9ef826b15e9a8d3e0ac940f /api | |
parent | dd536b780f41ab5e390d404e69b186721bc51e93 (diff) | |
download | chat-7b1e86a08cd8549f694cd7dc17aa62833f65155d.tar.gz chat-7b1e86a08cd8549f694cd7dc17aa62833f65155d.tar.bz2 chat-7b1e86a08cd8549f694cd7dc17aa62833f65155d.zip |
adding skip
Diffstat (limited to 'api')
-rw-r--r-- | api/post.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |