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
Этот коммит содержится в:
Joram Wilander
2017-09-28 12:08:16 -04:00
коммит произвёл Corey Hulen
родитель 884cf494cb
Коммит f263d2b951
8 изменённых файлов: 68 добавлений и 3 удалений

Просмотреть файл

@@ -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")