mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
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
This commit is contained in:
committed by
Corey Hulen
parent
884cf494cb
commit
f263d2b951
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user