Add option to disable direct CDN uploads

This commit is contained in:
Tulir Asokan
2023-05-14 14:46:04 +03:00
parent de80a77708
commit ad8efb864b
4 changed files with 7 additions and 1 deletions

View File

@@ -1496,7 +1496,7 @@ func (portal *Portal) handleMatrixMessage(sender *User, evt *event.Event) {
sendReq.Content, sendReq.AllowedMentions = portal.parseMatrixHTML(content)
}
if !isWebhookSend && sess.IsUser {
if portal.bridge.Config.Bridge.UseDiscordCDNUpload && !isWebhookSend && sess.IsUser {
att := &discordgo.MessageAttachment{
ID: "0",
Filename: filename,