sopython-site
sopython-site copied to clipboard
Prevent spoiler app from generating links too long to be pasted in chat
I didn't do short links to avoid storing the data in the database and to avoid very long spoilers. Do you know what the length limit of chat messages is?
500 chars
I can at least put an error message in if the encoded data and default message exceeds that.
Well, that would be better than nothing. Can probably find a better encoding than base64 without too much effort.
qntm did some work on that: https://qntm.org/twitcodings, although I don't think most other encodings are URL safe.