#mastoadmin Question
#selfhost #mastodon
Assuming: v5.0.0 still does not allow for changing the character or polling limits within the interface or .env file. (a quick look after upgrading appears not… I will delete this if I’m wrong)
How are people modifying the source to achieve this on a non-Docker install? Version 4.x and below relied on modifying “app/javascript/mastodon/features/compose/containers/compose_form_container.js”
But that file seems to have gone away.
app/validators/poll_options_validator.rb and app/validators/status_length_validator.rb still exist with the same options as before.
It continues to make me sad that years of requests to have this as an option continue to be resisted for purely ideological rather than technical reasons.
and to prove my point… this is the new error
@chris In 5.0 the two validators are all you need. The web composer no longer has its own hardcoded limit. It reads max_characters, max_options and max_characters_per_option from /api/v2/instance, and those come straight from StatusLengthValidator::MAX_CHARS and PollOptionsValidator::MAX_OPTIONS and MAX_OPTION_CHARS. The poll option length used to be stuck at 50 in the UI, but https://github.com/mastodon/mastodon/pull/41713 made it follow the server too.
So edit those two files, restart web and sidekiq, and reload the page. The instance endpoint is cached for a few minutes, so the old limit can hang around briefly. Until the browser has loaded the server config, the composer falls back to 500.
That's how we run 10000 characters and 15 poll options on mementomori.social: https://github.com/mementomori-social/mastodon/commit/02d6911900
Raise post, poll and hashtag column limits · mementomori-social/mastodon@02d6911
Fix poll option length limit ignoring server configuration by lazerg · Pull Request #41713 · mastodon/mastodon