about summary refs log tree commit diff
path: root/app/validators
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-11-17 14:28:16 -0600
committerDavid Yip <yipdw@member.fsf.org>2017-11-17 14:28:16 -0600
commitdc16d73bf5f3e7db54e4f21848f40cff3d9172ca (patch)
treefedca9297462bcf7419331c4498c34242385da23 /app/validators
parentb006bb82afb360d64e9d2f7f12aa76d4a69a2397 (diff)
parentca5440b93df514659eacde4ce562e459643dedc3 (diff)
Merge remote-tracking branch 'lambadalambda/feature/configurable-status-size' into glitchsoc/feature/configurable-status-size
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/status_length_validator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/validators/status_length_validator.rb b/app/validators/status_length_validator.rb
index 2ce5d1ee9..79d17742a 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 = 512
+  MAX_CHARS = (ENV['MAX_TOOT_CHARS'] || 500).to_i
 
   def validate(status)
     return unless status.local? && !status.reblog?