summaryrefslogtreecommitdiffstats
path: root/bridge/discord
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-10-27 01:10:43 +0200
committerGitHub <noreply@github.com>2019-10-27 01:10:43 +0200
commitff0de85817429eaa6ac8cbb80dd19d936331b12d (patch)
tree6a0d78cd4eb2d747c1611246cb90829b8982ed0b /bridge/discord
parent727fa9f92971a29eaa1790fb249bd3a7baa919f6 (diff)
downloadmatterbridge-msglm-ff0de85817429eaa6ac8cbb80dd19d936331b12d.tar.gz
matterbridge-msglm-ff0de85817429eaa6ac8cbb80dd19d936331b12d.tar.bz2
matterbridge-msglm-ff0de85817429eaa6ac8cbb80dd19d936331b12d.zip
Remove obsolete file upload links (discord). Fixes #908 (#931)
Since v1.16.0 we now can upload files via webhook. Old way of showing files with webhook only setup can be removed.
Diffstat (limited to 'bridge/discord')
-rw-r--r--bridge/discord/discord.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index 1c6c40d9..bc93b957 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -234,18 +234,6 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {
}
b.Log.Debugf("Broadcasting using Webhook")
- for _, f := range msg.Extra["file"] {
- fi := f.(config.FileInfo)
- if fi.Comment != "" {
- msg.Text += fi.Comment + ": "
- }
- if fi.URL != "" {
- msg.Text = fi.URL
- if fi.Comment != "" {
- msg.Text = fi.Comment + ": " + fi.URL
- }
- }
- }
// skip empty messages
if msg.Text == "" && (msg.Extra == nil || len(msg.Extra["file"]) == 0) {