From f263d2b9510fb557fe075dee5097cb32e2b1e5e2 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 28 Sep 2017 12:08:16 -0400 Subject: PLT-7684 Add support to outgoing webhooks and slash commands to set post type and props (#7531) * Add support to outgoing webhooks and slash commands to set post type and props * Fix nil access --- app/command.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/command.go') diff --git a/app/command.go b/app/command.go index 0763e24c7..1eaf304ad 100644 --- a/app/command.go +++ b/app/command.go @@ -239,6 +239,8 @@ func (a *App) HandleCommandResponse(command *model.Command, args *model.CommandA post.RootId = args.RootId post.ParentId = args.ParentId post.UserId = args.UserId + post.Type = response.Type + post.Props = response.Props if !builtIn { post.AddProp("from_webhook", "true") -- cgit v1.2.3-1-g7c22