mautrix / discord

A Matrix-Discord puppeting bridge
https://go.mau.fi/mautrix-discord
GNU Affero General Public License v3.0
240 stars 22 forks source link

Cut off links media links, making GIFs non functional on other bridges #149

Closed TomTheDragon closed 6 days ago

TomTheDragon commented 1 month ago

I just noticed that GIFs do not get send correctly.

An example: This is how the URL looks like in the chat on Discord: https://media.discordapp.net/attachments/888499907852369973/1004876137144524904/dOi8n9.gif?ex=66697614&is=66682494&hm=e072990f03b5f61e691f77fcb7f54283c0e35f51aeb29ef51f922edf1c5be7ea&

I did set my bridge to re-upload media, since direct media seems to cause problems with other bridges. So it posts a image which links to this: https://foxyden.eu/_matrix/media/r0/download/foxyden.eu/glLJDjPjvMTOSRJoggkMNKNd But there is also a text embedded in the message, which is a cut off/broken version of the original URL: https://media.discordapp.net/attachments/888499907852369973/1004876137144524904/dOi8n9.gif

I also have a Telegram bridge in the same Matrix room and it only bridges over the text from that post, which is that non working URL.

TomTheDragon commented 6 days ago

The new "Direct media access" function of the discord bridge fixed it.