summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/webhook.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/webhook.go b/api/webhook.go
index ec96f012e..072a40559 100644
--- a/api/webhook.go
+++ b/api/webhook.go
@@ -480,6 +480,7 @@ func incomingWebhook(c *Context, w http.ResponseWriter, r *http.Request) {
c.Err = model.NewLocAppError("incomingWebhook", "web.incoming_webhook.permissions.app_error", nil, "")
return
}
+ c.Err = nil
if _, err := CreateWebhookPost(hook.UserId, channel.Id, hook.TeamId, text, overrideUsername, overrideIconUrl, parsedRequest.Props, webhookType); err != nil {
c.Err = err