m->d: @mention guessing inside code blocks should be disabled #31

Closed
opened 2024-02-01 08:49:49 +00:00 by cadence · 0 comments
Owner

Currently mention guessing in messages works like this:

  • (Matrix) @user
  • (Discord pings the user) <@123456789> = @user

However this also applies to code blocks:

  • (Matrix) `@user`
  • (Discord can't ping the user) `<@123456789>` = <@123456789> and the bare mention is exposed and the message is corrupted

Need to fix this by only activating the feature outside of code blocks. While I'm at it, make sure it doesn't apply to links either.

Currently mention guessing in messages works like this: - (Matrix) `@user` - (Discord pings the user) `<@123456789>` = `@user` However this also applies to code blocks: - (Matrix) `` `@user` `` - (Discord can't ping the user) `` `<@123456789>` `` = `<@123456789>` and the bare mention is exposed and the message is corrupted Need to fix this by only activating the feature outside of code blocks. While I'm at it, make sure it doesn't apply to links either.
cadence added this to the v2.0 milestone 2024-02-13 00:26:47 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cadence/out-of-your-element#31
No description provided.