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

Links of bridged messages from other bots render incorrectly in matrix #115

Closed Zwelf closed 11 months ago

Zwelf commented 11 months ago

markdown link from bots look wrong on matrix side.

discord matrix

{
  "m.new_content": {
      "body": "New map [Vigorous](https://ddnet.org/maps/?map=Vigorous) by [Wartoz](https://ddnet.org/mappers/Wartoz/) & [shengyan](https://ddnet.org/mappers/shengyan/) released on [Moderate](https://ddnet.org/ranks/moderate/).",
      "format": "org.matrix.custom.html",
      "formatted_body": "New map [Vigorous](<a href=\"https://ddnet.org/maps/?map=Vigorous\">https://ddnet.org/maps/?map=Vigorous</a>) by [Wartoz](<a href=\"https://ddnet.org/mappers/Wartoz/\">https://ddnet.org/mappers/Wartoz/</a>) &amp; [shengyan](<a href=\"https://ddnet.org/mappers/shengyan/\">https://ddnet.org/mappers/shengyan/</a>) released on [Moderate](<a href=\"https://ddnet.org/ranks/moderate/\">https://ddnet.org/ranks/moderate/</a>).",
      "msgtype": "m.text"
      "..."
    },
  },
tulir commented 11 months ago

Seems to work fine for me so I'm assuming that's an older version of the bridge

Zwelf commented 11 months ago

So probably fixed in 345391f8b1f28e6fc69c4b414805f8146684fa6a, because I'm running mautrix-discord 0.6.1+dev.fb6d89a8 (Aug 16 2023, 22:01:30 with go1.21.0) (fb6d89a8). Thanks. I'll update my bridge.

Zwelf commented 11 months ago

I can confirm, that with the new version this got fixed.