Comments (3)
There is a Mastodon feature request asking for alt text for custom emojis but it's been around since 2018 and doesn't look like its a priority item in the backlog (mastodon/mastodon#9269). If/when this gets implemented I would consider swapping custom emoji with images in the plugin so the post content can be rendered as is.
For now, I can include the custom emoji data for the status so that you have the shortcode and the static url. You would still need to map the shortcode to the image in your template file, but you would be able to provide more descriptive alt text.
from eleventy-plugin-mastoarchive.
Nice catch! The custom emoji data is included in the status, so this definitely feels achievable.
{
"shortcode": "blobaww",
"url": "https://files.mastodon.social/custom_emojis/images/000/011/739/original/blobaww.png",
"static_url": "https://files.mastodon.social/custom_emojis/images/000/011/739/static/blobaww.png",
"visible_in_picker": true,
"category": "Blobs"
}
I'll need to see how the Mastodon UI decides the alt text. "blobaww" is somewhat descriptive but I have a feeling not all shortcodes are going to be suitable as alt text.
from eleventy-plugin-mastoarchive.
It seems they just use the shortcode as the alt text from what I can tell. I agree though, that's not always going to be super descriptive, tricky issue.
from eleventy-plugin-mastoarchive.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eleventy-plugin-mastoarchive.