[PLT-840] Add option to outgoing webhooks to reply to the posted message as a comment (#7807)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
e2b165cf3e
Коммит
fdba2d50fd
@@ -38,7 +38,7 @@ func TestCreateWebhookPost(t *testing.T) {
|
||||
Text: "text",
|
||||
},
|
||||
},
|
||||
}, model.POST_SLACK_ATTACHMENT)
|
||||
}, model.POST_SLACK_ATTACHMENT, "")
|
||||
if err != nil {
|
||||
t.Fatal(err.Error())
|
||||
}
|
||||
@@ -49,7 +49,7 @@ func TestCreateWebhookPost(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
_, err = th.App.CreateWebhookPost(hook.UserId, th.BasicChannel, "foo", "user", "http://iconurl", nil, model.POST_SYSTEM_GENERIC)
|
||||
_, err = th.App.CreateWebhookPost(hook.UserId, th.BasicChannel, "foo", "user", "http://iconurl", nil, model.POST_SYSTEM_GENERIC, "")
|
||||
if err == nil {
|
||||
t.Fatal("should have failed - bad post type")
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user