From 142924bdf778709132ab2e9e043238225e1f22c6 Mon Sep 17 00:00:00 2001 From: Nathan Sparrow <24910097+DismalShadowX@users.noreply.github.com> Date: Wed, 28 Aug 2024 00:42:42 -0400 Subject: [PATCH] Revert "Max chars (#50)" (#51) This reverts commit 43080ca1fe9544f346684d50fd36af2890ffcb7e. --- 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 cefa67e7175eaa..a36faf2a11c79d 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 = ENV.fetch('MAX_POST_CHARS', 500).to_i + MAX_CHARS = 4242 URL_PLACEHOLDER_CHARS = 23 URL_PLACEHOLDER = 'x' * 23