about summary refs log tree commit diff
path: root/app/models/account.rb
diff options
context:
space:
mode:
authortrwnh <a@trwnh.com>2019-05-19 15:51:44 -0500
committerEugen Rochko <eugen@zeonfederated.com>2019-05-19 22:51:44 +0200
commita6caf919e2d766bb924992943946cba915b17036 (patch)
tree85d17b0f679cba89b75a3266f87f499cae371584 /app/models/account.rb
parentae1838655876363065dd062a21064d385a90eb33 (diff)
Change bio limit from 160 to 500 (#10790)
* Change note_length validator from 160 to 500

* Change input maxlength from 160 to 500

* update bio test from 160 to 500

* Multiply a string 30 times instead of 10
Diffstat (limited to 'app/models/account.rb')
-rw-r--r--app/models/account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index a894d5be5..fe48fce10 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -75,7 +75,7 @@ class Account < ApplicationRecord
   validates_with UniqueUsernameValidator, if: -> { local? && will_save_change_to_username? }
   validates_with UnreservedUsernameValidator, if: -> { local? && will_save_change_to_username? }
   validates :display_name, length: { maximum: 30 }, if: -> { local? && will_save_change_to_display_name? }
-  validates :note, note_length: { maximum: 160 }, if: -> { local? && will_save_change_to_note? }
+  validates :note, note_length: { maximum: 500 }, if: -> { local? && will_save_change_to_note? }
   validates :fields, length: { maximum: 4 }, if: -> { local? && will_save_change_to_fields? }
 
   scope :remote, -> { where.not(domain: nil) }