Rename MAX_CHARS to MAX_TOOT_CHARS to be more specific.

This commit is contained in:
Lain Iwakura
2017-11-14 17:56:38 +01:00
parent dae8916544
commit ca5440b93d
5 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
# frozen_string_literal: true
class StatusLengthValidator < ActiveModel::Validator
MAX_CHARS = (ENV['MAX_CHARS'] || 500).to_i
MAX_CHARS = (ENV['MAX_TOOT_CHARS'] || 500).to_i
def validate(status)
return unless status.local? && !status.reblog?