Giter VIP home page Giter VIP logo

Comments (3)

declanbyrd avatar declanbyrd commented on June 16, 2024 1

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.

declanbyrd avatar declanbyrd commented on June 16, 2024

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.

EllyLoel avatar EllyLoel commented on June 16, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.