Kraken
mastodon
4.5.5
Posts
📑 Guide: Changing Mastodon Character Limit (Docker/Coolify) Without Forking This method allows you to increase the character limit (e.g., from 500 to 7500) while keeping your instance on the official Mastodon Docker images. This ensures easy updates and prevents the “merge hell” of custom forks.
- Prepare Modified Files on the Host Instead of editing files inside the container (which are wiped on every update), we create local copies on your server (e.g., in /root/).
A. Backend Validator (/root/status_length_validator.rb) Change the MAX_CHARS constant to your desired limit.
Ruby
frozen_string_literal: trueclass StatusLengthValidator < ActiveModel::Validator MAX_CHARS = 7500 # Set your limit here URL_PLACEHOLDER_CHARS = 23 URL_PLACEHOLDER = ‘x’ * 23 # … (keep the rest of the file as is) B. Frontend Container (/root/compose_form_container.js) Locate the line where the frontend fetches the character limit and set the fallback value to match your limit.
JavaScript // Search for ‘max_characters’ and change the fallback 500 to 7500 maxChars: state.getIn([‘server’, ‘server’, ‘configuration’, ‘statuses’, ‘max_characters’], 7500),
- Update Docker Compose Configuration In Coolify (or your docker-compose.yml), modify the web service. We use Volumes to “overlay” our custom files onto the container’s filesystem.
YAML web:
image: 'tootsuite/mastodon:v4.5.5'
# 1. Environment Variables: Tell the API to report the new limit
environment:
- MAX_TOOT_CHARS=7500
- MAX_STATUS_CHARS=7500
# 2. Volume Mounts: Inject the modified files
volumes:
- 'mastodon_system:/opt/mastodon/public/system'
- '/root/status_length_validator.rb:/opt/mastodon/app/validators/status_length_validator.rb'
- '/root/compose_form_container.js:/opt/mastodon/app/javascript/mastodon/features/compose/containers/compose_form_container.js'
- Why This Works (v4.3+ Logic) Modern Mastodon versions (v4.3, v4.4, v4.5+) are more dynamic:
Environment Variables: Setting MAX_TOOT_CHARS forces the /api/v1/instance endpoint to report the new limit. Mobile apps (like Tusky or Ivory) read this and unlock the limit automatically.
Volumes: Overlaying the Ruby file ensures the backend validates the length correctly. Overlaying the JS file ensures the web interface doesn’t block the “Publish” button at 500 characters.
- Apply and Verify Save the configuration in Coolify.
Redeploy: A simple restart is not enough; a redeploy is required to create the new volume mounts.
Clear Browser Cache: Use Ctrl + F5 to ensure the new JavaScript is loaded.
Verification To confirm the server is broadcasting the new limit, visit: https://your-domain.com/api/v1/instance
Search for “max_characters”: 7500. If you see it, the backend, frontend, and mobile apps are all synced.
💡 Why this is better than a Fork: ✅ Update-proof: When a new Mastodon version is released, just click “Update” in Coolify. Your custom volumes will stay in place.
✅ No Build Time: You don’t have to wait hours for a custom Docker image to build.
✅ Clean: You stay on the official security-patched images.
Argentina is on edge. The Senate passed a contentious labor overhaul, sparking massive protests and a violent police response in Buenos Aires.1•4•5 The bill legalizes 12-hour workdays, eases firing rules, and curbs strikes in what's being called a direct assault on workers' rights.2•7•6 This is Milei's "shock therapy" in action, and it's being met with fierce resistance.
https://newsgroup.site/%d0%bf%d1%80%d0%b5%d0%b7%d0%b8%d0%b4%d0%b5%d0%bd%d1%82-%d0%bc%d1%96%d0%bb%d0%b5%d0%b9-%d0%bf%d0%b5%d1%80%d0%b5%d1%82%d0%b2%d0%be%d1%80%d1%8e%d1%94-%d0%bf%d1%80%d0%b0%d1%86%d1%96%d0%b2%d0%bd%d0%b8/
#Exploitation #Argentina #LaborRights
Europe's security paradigm is shifting. Faced with eroding trust in U.S. guarantees, leaders are openly discussing a homegrown nuclear deterrent for the first time since the Cold War.5•6 Germany and France have begun talks, signaling a move toward strategic autonomy.1 This isn't about replacing NATO, but ensuring its credibility from within.2•4 Deterrence, after all, depends on political commitment.7 A pivotal moment in global security is unfolding.