Skip to content

Commit

Permalink
Max chars (#50)
Browse files Browse the repository at this point in the history
* Update status_length_validator.rb

Increase to 4242

* Update .env.production.sample

* Update status_length_validator.rb
  • Loading branch information
DismalShadowX authored Aug 28, 2024
1 parent 8af7190 commit 43080ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/validators/status_length_validator.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 43080ca

Please sign in to comment.