I see there's the same limit as when using a scriptlet: mastodon share urls (https://server.exemple/share?text=) send a 502 error if the text is longer than approximately 300 chararcters.
Not sure if there's a good way around this without switching to direct API access, which is out of the scope of this tool. At a minimum, maybe there could be a message somewhere when the string would be too long explaining the error, or links over a certain length could be automatically trimmed with the same code from Link Cleaner.
From this thread: https://github.com/corbindavenport/share-to-mastodon/issues/12#issuecomment-1650281300
Not sure if there's a good way around this without switching to direct API access, which is out of the scope of this tool. At a minimum, maybe there could be a message somewhere when the string would be too long explaining the error, or links over a certain length could be automatically trimmed with the same code from Link Cleaner.