Skip to content

Configurable max post characters

chandrn7 edited this page Jun 29, 2021 · 5 revisions

Smalltown allows admins to specify a different max post characters than the original 500 characters limit in Mastodon.

Why

Some sites would like to be able to include more content in each post. This enables admins to tailor the max characters to their needs.

How

Add the following line to your .env.production file:

MAX_STATUS_CHARS=3000

Replace 3000 with the limit you want and recompile the assets:

sudo su - mastodon
cd live
RAILS_ENV=production bundle exec rails assets:precompile
exit

Then restart Smalltown:

sudo systemctl restart mastodon-streaming.service mastodon-sidekiq.service mastodon-web.service