Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Grow Your Own Services 🌱
Grow Your Own Services 🌱
@homegrown@social.growyourown.services  ·  activity timestamp 3 weeks ago

Mastodon admins, do you want to increase the character limit on your server?

If you're running a manually installed server and have access to modify files, this is apparently how to do it:

🌱 https://it-notes.dragas.net/2024/10/09/2024-modifying-limits-in-mastodon-4-3/

EDIT: Thanks for all the info in replies! I've changed the link to a more complete alternative article on all the changes needed.

(Thank you to @kaveinthran for pointing out the original article and @b2c for pointing out the alternative article.)

#MastoAdmin

  • Copy link
  • Flag this post
  • Block
Chewie
Chewie
@chewie@mammut.gogreenit.net  ·  activity timestamp 3 weeks ago

@homegrown @kaveinthran

There is also a "500" value in "live/spec/validators/note_length_validator_spec.rb" too, so I always edit that too, although I don't know if that is required.

It's better than it used to be.
In versions < 4.3, there were 4 files to change :/

Also, in older versions, there was some caching involved, because sometimes the limit in the web page took ages before it changed (even after reboot).

One thing the article doesn't mention, is that when you come to upgrade, you may have to set the values back again, or the git commands fail :(

I really wish this could just be a setting in the Admin interface. It makes no sense not to make it easier.
It can't be a difficult thing to implement with a variable... 😡

  • Copy link
  • Flag this comment
  • Block
Grow Your Own Services 🌱
Grow Your Own Services 🌱
@homegrown@social.growyourown.services  ·  activity timestamp 3 weeks ago

@chewie

Yup, it is very odd that they don't let the admin set it.

  • Copy link
  • Flag this comment
  • Block
Chewie
Chewie
@chewie@mammut.gogreenit.net  ·  activity timestamp 3 weeks ago

@homegrown Yes, there's been an issue open about it since 2019: https://github.com/mastodon/mastodon/issues/12265

very frustrating, especially as so much effort was put into "quote posts" which is way more difficult to implement.

It is clearly an ideological stance, as gargron writes in 2017: https://github.com/mastodon/mastodon/pull/5697#issuecomment-345078582, which seems silly.

  • Copy link
  • Flag this comment
  • Block
🌈 BarbaPulpe 😇 ᴹᵃˢᵗᵒᵈᵒⁿ
🌈 BarbaPulpe 😇 ᴹᵃˢᵗᵒᵈᵒⁿ
@barbapulpe@gayfr.social  ·  activity timestamp 3 weeks ago

@homegrown @kaveinthran
Mmm... Im not sure that's right, I do that on my instance and I need to modify two files, not just one.

Link that works for sure: https://fouquet.me/2024/10/10/mastodon-4-3-char-limit

René Fouquet

Increasing the Mastodon 4.3 post character and poll options limit

Last year, I wrote about how to raise the default Mastodon character limit. With the newly released version 4.3, a few things have changed. If you want to change the character limit the instructions for the previous versions will no longer work. Thankfully the changes make it actually easier to change the limit. Less files need to be edited and less complex changes are necessary.
  • Copy link
  • Flag this comment
  • Block
born2chill
born2chill
@b2c@wien.rocks  ·  activity timestamp 3 weeks ago

@homegrown You need to patch the Javascript frontend code as well, otherwise it won't work in the web UI.

Check: https://github.com/mastodon/mastodon/blob/main/app/javascript/mastodon/features/compose/containers/compose_form_container.js#L61

After patching it, don't forget to recompile all assets.

CC: @kaveinthran

GitHub

mastodon/app/javascript/mastodon/features/compose/containers/compose_form_container.js at main · mastodon/mastodon

Your self-hosted, globally interconnected microblogging community - mastodon/mastodon
  • Copy link
  • Flag this comment
  • Block
Grow Your Own Services 🌱
Grow Your Own Services 🌱
@homegrown@social.growyourown.services  ·  activity timestamp 3 weeks ago

@b2c

Thank you so much 🙏

So it's not as simple as the article implies?

  • Copy link
  • Flag this comment
  • Block
born2chill
born2chill
@b2c@wien.rocks  ·  activity timestamp 3 weeks ago

@homegrown No, that only changes it for mobile apps which only interact with the API.

Here is a better article, amongst others:
* https://it-notes.dragas.net/2024/10/09/2024-modifying-limits-in-mastodon-4-3/

IT Notes

Increasing or Modifying Character Limits and Poll Options in Mastodon 4.3, 4.4 and 4.5

Mastodon imposes a limit of 500 characters and 4 poll options. Here's how to change them.
  • Copy link
  • Flag this comment
  • Block
Grow Your Own Services 🌱
Grow Your Own Services 🌱
@homegrown@social.growyourown.services  ·  activity timestamp 3 weeks ago

@b2c

Thank you, that's great! 🙏

And thanks @stefano for writing it!

  • Copy link
  • Flag this comment
  • Block
Stefano Marinelli
Stefano Marinelli
@stefano@mastodon.bsd.cafe  ·  activity timestamp 3 weeks ago

@homegrown @b2c I'm glad it helps!

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.29 no JS en
Federation disabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct