From ff0de85817429eaa6ac8cbb80dd19d936331b12d Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 27 Oct 2019 01:10:43 +0200 Subject: 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. --- bridge/discord/discord.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'bridge/discord') 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) { -- cgit v1.2.3