summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
diff options
context:
space:
mode:
authorBrian V <kida001@gmail.com>2021-07-27 17:52:30 +0100
committerGitHub <noreply@github.com>2021-07-27 17:52:30 +0100
commit13bbeeaceb7bc2ad27c48deeff7a3536604564d5 (patch)
tree14fb94f766e60a2bbe4f7c53aa6cf2cd46fb614e /bridge/slack/slack.go
parentda4dcec14d7ea865d75cb84914c7c0507a1001d2 (diff)
downloadmatterbridge-msglm-13bbeeaceb7bc2ad27c48deeff7a3536604564d5.tar.gz
matterbridge-msglm-13bbeeaceb7bc2ad27c48deeff7a3536604564d5.tar.bz2
matterbridge-msglm-13bbeeaceb7bc2ad27c48deeff7a3536604564d5.zip
Add space before file upload comment (slack) (#1554)
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r--bridge/slack/slack.go2
1 files changed, 1 insertions, 1 deletions
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),