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
Better character limit message #5090
Comments
The character limit for posts in Diaspora is 65,535 – see https://diasporafoundation.org/getting_started/sharing For some reason the character count has disappeared from the publisher. It would be good to add this back, so that someone writing a long post can see live how close to the character limit they are getting, or will get a warning when they paste in a text which is too long (rather than when or after they try posting it). On a related note, I've just noticed when testing this that the counter when cross-posting to Facebook starts at 40000, even though the limit for Facebook posts is 63,206 characters (and MAX_CHARACTERS is set to this figure in |
OK, line 13 of /app/models/status_message.rb states that when the character limit is exceeded, the string It could be that putting the text in By the way, if someone fixes this, please also correct the English in the string text, because there are several errors: 'your status messages' should be 'your status message' (because we're only talking about the current message); the text in the The correct English for this string is: "please make your status message fewer than %{count} characters", although I would probably express this message in a different way, given the choice. I think I'd say something like "status messages can be no longer than 65,535 characters". If %{count} here = the length of the post minus 65,535, it could read "The limit for status messages is 65,535 characters. Your message is %{count} characters too long" |
https://github.com/diaspora/diaspora/blob/develop/app/models/status_message.rb#L13 |
Of course, it would have rather something like the string 'post to long' in it then... |
I don't know what the character limit on posts is, but I know there is one. I was testing for large posts, so I went to lipsum.com, generated a 200-paragraph lipsum, and tried to post it. It wouldn't post, and the error I got was "Failed to post message!"
I think that there should be a more descriptive error message for this kind of thing. Maybe tell the user why it failed and what the character limit is?
The text was updated successfully, but these errors were encountered: