Open trinity-1686a opened 5 years ago
Emojos are federated, so I don't think we will have to use the REST API there. They are listed in the tag
field, and look like.
{
"id": "https://example.instance.org/emojis/26312",
"type": "Emoji",
"name": ":emojo:",
"updated":"2018-12-03T21:55:00Z",
"icon": {
"type": "Image",
"mediaType": "image/png",
"url": "https://example.instance.org/path/to/emojo.png"
}
}
Showing :emojiname: is not exactly beautiful, Plume should try to display theme (this mainly concern display names, as Mastodon/Pleroma send directly html already containing emojis).
Some information for anyone trying to implement this feature : Supported emojis for an instance can be queried at
/api/v1/custom_emojis
, which return a json looking like that (truncated because it's actually very long):static_url
must be a static image, whereasurl
can be a gif, so it is probably better to displaystatic_url
at least as long as the user is not hovering the picturePlume version (and/or commit): 0.2