diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-15 21:39:31 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-15 21:39:31 -0500 |
commit | 44db8439d866119238d3d103f03dc361d9bf17f0 (patch) | |
tree | e001530e494716b0c8bd8c0265b798664b857d75 /web | |
parent | cd82de18f5c47f1dcc0e6e31af9d17c1ff0b1136 (diff) | |
parent | ab99c378c4f707e404db97b4ef24f00236bac00e (diff) | |
download | chat-44db8439d866119238d3d103f03dc361d9bf17f0.tar.gz chat-44db8439d866119238d3d103f03dc361d9bf17f0.tar.bz2 chat-44db8439d866119238d3d103f03dc361d9bf17f0.zip |
Merge pull request #1436 from florianorben/1432.v1.2
allow incoming webhooks even if it doesnt have a text on it if attachment field is present
Diffstat (limited to 'web')
-rw-r--r-- | web/web.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/web.go b/web/web.go index ffc791cb7..02ceb69ba 100644 --- a/web/web.go +++ b/web/web.go @@ -989,7 +989,7 @@ func incomingWebhook(c *api.Context, w http.ResponseWriter, r *http.Request) { } text := parsedRequest.Text - if len(text) == 0 { + if len(text) == 0 && parsedRequest.Attachments == nil { c.Err = model.NewAppError("incomingWebhook", "No text specified", "") return } |