Federated emoji
Small idea to improve custom emoji even further beyond.
Basic mechanic
What
Typing :shortcode@instance.tld:
will replace that text with emoji from remote server.
Why
- People LOVE stealing emoji from each other so it would be a bit simpler than whining to your local instance admin to add emoji.
- Would fix emoji in Subject/CW
- Would allow custom emoji reactions
- Would potentially de-dupe emoji across instances since admins would be able to free up space by giving up their
stolenillicitly obtained emoji :)
How
Backend/MastoAPI
- MastoAPI exposes emoji in separate entry which lists all used emoji. PleromaFE finds
:${shortcode}:
in post text and replaces them with<img src='${url}'.../>
so usingshortcode@instance
as shortcode would work, and using absolute path asurl
pointing to remote instance (or mediaproxy) would also work.- Mastodon only allows
/[A-Za-z_]{2,}/
for shortcodes so if clients do not work with@
it could be something likeshortcode__AT__instance
(PleromaFE uses that for user CSS class to enable userstyles). Same applies for Mastodon instances. - No idea if absolute URLs will work, if they don't cache them locally/install them?
- Mastodon only allows
Frontend
- Add option to save favorite emoji
- Emoji in posts should have context menu to save them to favorites, including external ones.
- Correctly replace
__AT__
with@
if we use that syntax.
- Correctly replace
- Autocomplete for external emoji should be able to check if external emoji exists or not
Edited by HJ