corbindavenport / share-to-mastodon

Browser extension for sharing links and tabs to Mastodon (and other Fediverse platforms)
https://chrome.google.com/webstore/detail/bibnjflclpdmbbcncejifemmbggkcjde
GNU General Public License v3.0
60 stars 0 forks source link

HTTP 502 error on long share messages #13

Open corbindavenport opened 11 months ago

corbindavenport commented 11 months ago

From this thread: https://github.com/corbindavenport/share-to-mastodon/issues/12#issuecomment-1650281300

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.