From 72ce7f06e9bfc2a665f034f4099ed6eb79637f5c Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 6 May 2018 16:57:59 +0200 Subject: Handle file comment better --- bridge/gitter/gitter.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/gitter') diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go index 853640f5..faa86e5a 100644 --- a/bridge/gitter/gitter.go +++ b/bridge/gitter/gitter.go @@ -168,6 +168,9 @@ func (b *Bgitter) handleUploadFile(msg *config.Message, roomID string) (string, } if fi.URL != "" { msg.Text = fi.URL + if fi.Comment != "" { + msg.Text = fi.Comment + ": " + fi.URL + } } _, err := b.c.SendMessage(roomID, msg.Username+msg.Text) if err != nil { -- cgit v1.2.3