Configurable length limits for content
Inspired by:
https://meta.codidact.com/posts/282950
https://meta.codidact.com/posts/282973
We currently hard-code the following length limits:
- ~~post title: ~1000~ 250 characters~~ - made configurable in response to this issue
- post body: 30,000 characters
- comment: 500 characters
- (comment thread title? unknown)
There are some questions/comments in those meta posts about whether limits are, or could be, configurable per community. It seems reasonable to me that a community might want articles to be able to be longer, and maybe now that comments are threaded and thus out of the way, some might want to increase the limit there to avoid the "1/3" pattern. I don't know if there's a use case for decreasing any of these limits (though one person on meta thinks 1000 characters is too long for titles, so who knows?).
Can we make these length limits configurable per community? (Per category seems too complex without a strong use case.) The first two could be part of the configuration of the post type; comment limits would need to go somewhere in site settings.
post title: 1000 characters
No! The limit is 250 character. Tested here. Tested with 300 characters also. I am looking at db now(haven't find anything), will edit the comment if I find.
Limit of post title is 250........ Limit of comment_thread is also 250


Usually, database has no limit for post body. I think it was limited from ruby/JS
Related (minimum values):
https://github.com/codidact/qpixel/issues/1092 (some related discussion in https://github.com/codidact/qpixel/issues/945) https://github.com/codidact/qpixel/issues/1103
To follow up on b-Istiak-s comment, comment thread titles are, indeed, limited by the DB data type to 255 characters (string is mapped to varchar). Unfortunately, it doesn't seem like it's validated. Speaking of which, we should probably display a friendlier error message instead of dumping a DB error on users that manage to bypass the client-side only restriction (which is trivial to do).