mautrix / discord

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

Configurable username format for webhook relays #155

Open austinhuang0131 opened 3 months ago

austinhuang0131 commented 3 months ago

Originally posted at https://geekdom.social/@bigolifacks/112859769835968061 (not me); the concerning code is

https://github.com/mautrix/discord/blob/035f2a408b4a6cf73acbf168dff5d16198930ee2/portal.go#L1436-L1441

so eg. allows the bridge to always include MXID in the webhook display name.

tulir commented 3 months ago

Making it configurable doesn't really solve anything. I'll probably include proper disambiguation in megabridge, but I couldn't find any Go libraries for UTS #39 confusable detection, so will need to write one first