From 43080ca1fe9544f346684d50fd36af2890ffcb7e Mon Sep 17 00:00:00 2001 From: Nathan Sparrow <24910097+DismalShadowX@users.noreply.github.com> Date: Wed, 28 Aug 2024 00:19:42 -0400 Subject: [PATCH] Max chars (#50) * Update status_length_validator.rb Increase to 4242 * Update .env.production.sample * Update status_length_validator.rb --- app/validators/status_length_validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/validators/status_length_validator.rb b/app/validators/status_length_validator.rb index a36faf2a11c79d..cefa67e7175eaa 100644 --- a/app/validators/status_length_validator.rb +++ b/app/validators/status_length_validator.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class StatusLengthValidator < ActiveModel::Validator - MAX_CHARS = 4242 + MAX_CHARS = ENV.fetch('MAX_POST_CHARS', 500).to_i URL_PLACEHOLDER_CHARS = 23 URL_PLACEHOLDER = 'x' * 23