diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-07-05 11:32:28 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-07-05 11:32:28 -0400 |
commit | f9e5a9029c73a0b9499990f0e344a096c9aacf01 (patch) | |
tree | 10f05442d740cffb96b2ac529d566fadfe62e53b /api/webhook.go | |
parent | c0392a60c8a0b6158255b516f30eb79e43971b6b (diff) | |
download | chat-f9e5a9029c73a0b9499990f0e344a096c9aacf01.tar.gz chat-f9e5a9029c73a0b9499990f0e344a096c9aacf01.tar.bz2 chat-f9e5a9029c73a0b9499990f0e344a096c9aacf01.zip |
Fixed error when adding incoming webhook to public channel not currently in (#3483)
Diffstat (limited to 'api/webhook.go')
-rw-r--r-- | api/webhook.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/webhook.go b/api/webhook.go index 6297133da..5dceeddc4 100644 --- a/api/webhook.go +++ b/api/webhook.go @@ -77,6 +77,7 @@ func createIncomingHook(c *Context, w http.ResponseWriter, r *http.Request) { c.LogAudit("fail - bad channel permissions") return } + c.Err = nil } if result := <-Srv.Store.Webhook().SaveIncoming(hook); result.Err != nil { |