mfm.js icon indicating copy to clipboard operation
mfm.js copied to clipboard

MFMjs will fail to parse users including dots in their ID

Open HotoRas opened this issue 1 year ago • 3 comments

💡 Summary

Lately Bluesky has begun one-way federation into ActivityPub. However, unlike Misskey, Bluesky allows dots (.) in their user IDs. Since MFMjs don't expect dots in the username part of the user, mentioning those users will end up broken result.

🥰 Expected Behavior

The whole User ID (e.g. @[email protected]) will be parsed as user.

🤬 Actual Behavior

ID before dots (@example in the case above) will be parsed as user and the rest will remain as string.

📝 Steps to Reproduce

  1. Open any of the Misskey server (or MFM-supported site- no matters) and open note post.
  2. Type any mentions including dots in their username part.
  3. Open preview. (If you want you can just post it)

💻 Frontend Environment

  • Model and OS of the device(s): Samsung Galaxy Note 20 Ultra (Korean), Android 12
  • Browser: Chrome Beta 127.0.6521.0 (Official Build) dev (64-bit)
  • Misskey:
    • Server URL: Nekoplanet (Korean Server)
    • Version: 2024.3.1+neko-rc

HotoRas avatar Jun 13 '24 09:06 HotoRas

Related to #143

zyoshoka avatar Jun 15 '24 12:06 zyoshoka

Lately Bluesky has begun one-way federation into ActivityPub

(Off-topic) Really? Haven't heard of that (unless it's third-party bridge)

kakkokari-gtyih avatar Jul 15 '24 10:07 kakkokari-gtyih

(Off-topic) Really? Haven't heard of that (unless it's third-party bridge)

Yup it's bridge- but same happens here

HotoRas avatar Jul 16 '24 09:07 HotoRas

post update summary misleading contents after fixup

HotoRas avatar Jul 28 '25 09:07 HotoRas

Lately Bluesky has begun one-way federation into ActivityPub

(Off-topic) Really? Haven't heard of that (unless it's third-party bridge)

Thought updating the issue will make less misunderstandings, so I updated it even after it's been resolved

HotoRas avatar Jul 28 '25 09:07 HotoRas