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

support POST /api/v2/media #3405

Closed
connyduck opened this issue Apr 30, 2022 · 3 comments
Closed

support POST /api/v2/media #3405

connyduck opened this issue Apr 30, 2022 · 3 comments

Comments

@connyduck
Copy link

connyduck commented Apr 30, 2022

Please support POST /api/v2/media enpoint of the Mastodon api. Some client apps, like Tusky, use it and can no longer upload images to Pixelfed which returns 404. It should not be much effort to implement since it is very similar to /api/v1/media

From https://docs.joinmastodon.org/methods/statuses/media/

deprecated in favor of POST /api/v2/media, which is equal to v1 in all aspects, except it returns HTTP 202, and the returned JSON object has a url of null, because while the thumbnail is prepared synchronously, the full version of the media attachment will be processed in the background

@dansup
Copy link
Member

dansup commented Apr 30, 2022

@connyduck Will add right away!

@dansup
Copy link
Member

dansup commented Apr 30, 2022

@connyduck Deployed to pixelfed.social, can you test it for me?

@connyduck
Copy link
Author

@dansup you are the best!
https://pixelfed.social/p/connyduck/426086866746658313

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

No branches or pull requests

2 participants