Federated comments: Fediverse handles including custom emoticons are displayed in plain text
Quick summary
When someone replies to one of my posts via the Fediverse, their display name on the Fediverse is displayed as is in the comment on my site, even if their name includes a custom emoticon.
Steps to reproduce
-
Start with a site that uses the ActivityPub plugin
-
Publish a post.
-
Log in to a Mastodon account you may own, and change your display name there to include a custom emoticon that was added on that instance.
- Here is an example:
- Here is an example:
-
Reply to the post on your site from that Mastodon account
What you expected to happen
I would expect that post (and my custom Fediverse handle) to be displayed as the commenter name on my site.
What actually happened
Instead, the custom emoticon is displayed in plain text:
Impact
Some (< 50%)
Available workarounds?
There is no user impact
Logs or notes
No response
How would the custom emoji be passed on and processed?
What would be good steps for me to set up a test account that I could recreate this with?
I would start the investigation with: https://docs.joinmastodon.org/spec/activitypub/#Emoji
https://github.com/Automattic/wordpress-activitypub/discussions/1744
https://www.npmjs.com/package/markdown-it-emoji
- https://misskey-hub.net/en/docs/for-admin/features/managing-emojis/
- https://misskey-hub.net/en/tools/custom-emoji-preview/
- https://misskey-hub.net/en/docs/for-users/features/custom-emoji/
- https://docs.joinmastodon.org/methods/custom_emojis/
- https://docs.joinmastodon.org/entities/CustomEmoji/