From 13bbeeaceb7bc2ad27c48deeff7a3536604564d5 Mon Sep 17 00:00:00 2001 From: Brian V Date: Tue, 27 Jul 2021 17:52:30 +0100 Subject: [PATCH] Add space before file upload comment (slack) (#1554) --- bridge/slack/slack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 457312cd..5db0c33e 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -459,7 +459,7 @@ func (b *Bslack) uploadFile(msg *config.Message, channelID string) { b.cache.Add("filename"+fi.Name, ts) initialComment := fmt.Sprintf("File from %s", msg.Username) if fi.Comment != "" { - initialComment += fmt.Sprintf("with comment: %s", fi.Comment) + initialComment += fmt.Sprintf(" with comment: %s", fi.Comment) } res, err := b.sc.UploadFile(slack.FileUploadParameters{ Reader: bytes.NewReader(*fi.Data),