misskey-dev / mfm.js

An MFM parser implementation with TypeScript.
MIT License
112 stars 22 forks source link

MFMjs will fail to parse users including dots in their ID #144

Open HotoRas opened 3 months ago

HotoRas commented 3 months ago

💡 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. @example.bsky@bsky.social) 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

zyoshoka commented 3 months ago

Related to #143

kakkokari-gtyih commented 2 months ago

Lately Bluesky has begun one-way federation into ActivityPub

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

HotoRas commented 2 months ago

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

Yup it's bridge- but same happens here