There is a very small difference between the two Git branches, so pay attention.
su - mastodon
Edit if your Mastodon instance is v4.1.x
Edit if your Mastodon instance is v4.2.x
In this file, you will find the number “500” twice. Replace that number with your desired character limit and save the file.
In this file, you will find the number “500” once. Replace that number with your desired character limit and save the file.
FIND the line that reads:
ADD the following to that line:
Pay attention if a comma is used at the end or not.
Scroll down to the end of the file until you reach the “private” section.
def max_toot_chars [the number of your desired character limit without the brackets] end
def max_toot_chars 5000 end
Go back to the live directory and enter the following commands, one by one:
RAILS_ENV=production bundle exec rails assets:precompile exit systemctl restart mastodon-sidekiq systemctl reload mastodon-web [OPTIONAL] systemctl restart mastodon-streaming