Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Fix Toot CLI media attachments not working properly #726

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

tsmethurst
Copy link
Contributor

@tsmethurst tsmethurst commented Jul 22, 2022

This PR fixes the issue of the Toot cli not attaching media correctly to new statuses.

The problem was that when it comes to POST form data, the Mastodon API expects clients to use the key media_ids[] for their list of media attachment IDs. However, GtS was just accepting media_ids, which works great for json, but not so much for clients that use POST forms like Toot does.

This PR implements a simple fix for this by parsing media_ids[] in forms, but still using media_ids for json and xml. Tested and working with Toot, and therefore should work for other mastodon clients as well.

closes #686

@tsmethurst tsmethurst merged commit 7ca5bac into main Jul 22, 2022
@tsmethurst tsmethurst deleted the status_create_media_ids_update branch July 22, 2022 11:43
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.

[bug] Posts from toot cli don't show images on posts
1 participant