diff options
author | Lain Iwakura <lain@soykaf.club> | 2017-11-14 16:22:34 +0100 |
---|---|---|
committer | Lain Iwakura <lain@soykaf.club> | 2017-11-14 16:22:34 +0100 |
commit | 6cd192b9fb3dcb40a87cfb8b1bd0c5416b686a41 (patch) | |
tree | cd53fef874eb074fe57abc5d7d8ef639b790c33a /app | |
parent | 5df8e30415d7a9cb087da85e6367560d2802d31b (diff) |
Make character limit configurable.
Diffstat (limited to 'app')
-rw-r--r-- | app/validators/status_length_validator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/validators/status_length_validator.rb b/app/validators/status_length_validator.rb index 77be3f1f5..2be899740 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 = 500 + MAX_CHARS = (ENV["MAX_CHARS"] || 500).to_i def validate(status) return unless status.local? && !status.reblog? |