Skip to content

Conversation

tcarreira
Copy link

@tcarreira tcarreira commented Sep 26, 2025

What kind of change does this PR introduce?

Bug Fix or Feature, depends on the perspective 😃

Why was this change needed?

Fixing alt text for Mastodon posts

When adding alt text to the image, the Mastodon Provider does not seem to include it when posted. Image still shows as "No Alt Text", which may hurt its spread in certain communities.

Fixes #948

Tested on my postiz server. It works on my machine 😁

Checklist:

Put a "X" in the boxes below to indicate you have followed the checklist;

  • I have read the CONTRIBUTING guide.
  • I checked that there were not similar issues or PRs already open for this.
  • This PR fixes just ONE issue (do not include multiple issues or types of change in the same PR) For example, don't try and fix a UI issue and include new dependencies in the same PR.

Copy link

vercel bot commented Sep 26, 2025

@tcarreira is attempting to deploy a commit to the Listinai Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where alt text (image descriptions) for Mastodon posts were not being properly set. Previously, images were uploaded without their alt text being applied, resulting in "No Alt Text" appearing on posted images.

Key changes:

  • Modified the uploadFile method to return the complete media object instead of just the ID
  • Added a new updateMediaDescription method to set alt text on uploaded media
  • Updated the post creation flow to apply alt text to media after upload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mastodon Provider fails to implement Alt Text to Media Item

1 participant