diff --git a/app/integration_action.go b/app/integration_action.go index a19cc589d5..9047a80f7c 100644 --- a/app/integration_action.go +++ b/app/integration_action.go @@ -239,11 +239,16 @@ func (a *App) DoPostActionWithCookie(postId, actionId, userId, selectedOption st if response.EphemeralText != "" { ephemeralPost := &model.Post{ - Message: model.ParseSlackLinksToMarkdown(response.EphemeralText), + Message: response.EphemeralText, ChannelId: upstreamRequest.ChannelId, RootId: rootPostId, UserId: userId, } + + if !response.SkipSlackParsing { + ephemeralPost.Message = model.ParseSlackLinksToMarkdown(response.EphemeralText) + } + for key, value := range retain { ephemeralPost.AddProp(key, value) } diff --git a/model/integration_action.go b/model/integration_action.go index b682b85883..72661aecaa 100644 --- a/model/integration_action.go +++ b/model/integration_action.go @@ -173,8 +173,9 @@ type PostActionIntegrationRequest struct { } type PostActionIntegrationResponse struct { - Update *Post `json:"update"` - EphemeralText string `json:"ephemeral_text"` + Update *Post `json:"update"` + EphemeralText string `json:"ephemeral_text"` + SkipSlackParsing bool `json:"skip_slack_parsing"` // Set to `true` to skip the Slack-compatibility handling of Text. } type PostActionAPIResponse struct {