mautrix / discord

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

Forward slash erroneously added before an underscore when sending a message from Matrix to Discord #31

Closed anoadragon453 closed 2 years ago

anoadragon453 commented 2 years ago

I sent the following message from Matrix to a user in a Discord PM:

https://youtu.be/ZIBqdpR4C_U?t=926

this ended up on the Discord side as:

https://youtu.be/ZIBqdpR4C/_U?t=926

note the extra forward slash before the underscore.

The matrix event json, sent from Element Web 1.11.0, does not contain this slash:

{
...
  "type": "m.room.message",
  "content": {
    "org.matrix.msc1767.text": "https://youtu.be/ZIBqdpR4C_U?t=926",
    "body": "https://youtu.be/ZIBqdpR4C_U?t=926",
    "msgtype": "m.text"
  },
...

(according to Element Web's view source feature. Verified by poking in my Synapse's database.)

I'm running mautrix-discord on the latest commit as of this writing, 522ac4e2feefe265e2e46df4e847858b1191713e. Attached to Synapse v1.65.0.

anoadragon453 commented 2 years ago

bah, dupe of https://github.com/mautrix/discord/issues/14