diff --git a/server/events/webhooks/slack_client.go b/server/events/webhooks/slack_client.go index ad71ef6a..fa707dcb 100644 --- a/server/events/webhooks/slack_client.go +++ b/server/events/webhooks/slack_client.go @@ -68,7 +68,6 @@ func (d *DefaultSlackClient) ChannelExists(channelName string) (bool, error) { func (d *DefaultSlackClient) PostMessage(channel string, applyResult ApplyResult) error { params := slack.NewPostMessageParameters() params.Attachments = d.createAttachments(applyResult) - params.AsUser = true params.EscapeText = false _, _, err := d.Slack.PostMessage(channel, "", params) return err diff --git a/server/events/webhooks/slack_client_test.go b/server/events/webhooks/slack_client_test.go index 40814a32..885700de 100644 --- a/server/events/webhooks/slack_client_test.go +++ b/server/events/webhooks/slack_client_test.go @@ -98,7 +98,7 @@ func TestPostMessage_Success(t *testing.T) { }, }, }} - expParams.AsUser = true + expParams.AsUser = false expParams.EscapeText = false channel := "somechannel" @@ -137,7 +137,7 @@ func TestPostMessage_Error(t *testing.T) { }, }, }} - expParams.AsUser = true + expParams.AsUser = false expParams.EscapeText = false channel := "somechannel"