Skip to content

Conversation

@diplix
Copy link

@diplix diplix commented Oct 5, 2025

Added User-Agent header to requests and improved cURL handling for media uploads so that sending also works for GoToSocial.

To get IndieConnector working with GoToSocial as well, I had to make these changes. Apart from falling back to the Mastodon API v1 for image uploads, it should still work with other Mastodon instances too, although I haven’t tested that (only with GoToSocial). On my previous Mastodon instance, it was preferred not to upload huge images. Since I upload my originals to Kirby at 1800 px width, I’ll probably add a downscaling step around the line $optimizedImagePath = $imagePath;. As I’m self-hosting my GoToSocial instance, posting huge images is )probably) fine right now. maybe we can make that configurable via an option later?

Added User-Agent header to requests and improved cURL handling for media uploads so that sending also works for GoToSocial.
@mauricerenck mauricerenck self-assigned this Oct 16, 2025
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.

2 participants