From 2f12fa3c6188de1be3b6920abdbe7e5f918889a0 Mon Sep 17 00:00:00 2001 From: other8026 <146984625+other8026@users.noreply.github.com> Date: Mon, 12 Feb 2024 16:05:16 +0800 Subject: [PATCH] add to Matrix config to send url not a file --- bridge/config/config.go | 1 + matterbridge.toml.sample | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/bridge/config/config.go b/bridge/config/config.go index 18c60920..6fa27154 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -146,6 +146,7 @@ type Protocol struct { ReplaceNicks [][]string // all protocols RemoteNickFormat string // all protocols RunCommands []string // IRC + SendUrlNotFile bool // matrix Server string // IRC,mattermost,XMPP,discord,matrix SessionFile string // msteams,whatsapp ShowJoinPart bool // all protocols diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 5932b269..b78461ee 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -1329,6 +1329,10 @@ StripNick=false #OPTIONAL (default false) ShowTopicChange=false +#Enable to send a URL rather than an image +#(the default behavior in Matterbridge is to download and send a file) +SendUrlNotFile=true + ################################################################### #steam section ###################################################################