diff options
author | trwnh <a@trwnh.com> | 2019-05-19 15:51:44 -0500 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-05-19 22:51:44 +0200 |
commit | a6caf919e2d766bb924992943946cba915b17036 (patch) | |
tree | 85d17b0f679cba89b75a3266f87f499cae371584 /app | |
parent | ae1838655876363065dd062a21064d385a90eb33 (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')
-rw-r--r-- | app/models/account.rb | 2 | ||||
-rw-r--r-- | app/views/settings/profiles/show.html.haml | 2 |
2 files changed, 2 insertions, 2 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) } diff --git a/app/views/settings/profiles/show.html.haml b/app/views/settings/profiles/show.html.haml index eb232dc57..8ffb01824 100644 --- a/app/views/settings/profiles/show.html.haml +++ b/app/views/settings/profiles/show.html.haml @@ -7,7 +7,7 @@ .fields-row .fields-row__column.fields-group.fields-row__column-6 = f.input :display_name, wrapper: :with_label, input_html: { maxlength: 30 }, hint: false - = f.input :note, wrapper: :with_label, input_html: { maxlength: 160 }, hint: false + = f.input :note, wrapper: :with_label, input_html: { maxlength: 500 }, hint: false .fields-row .fields-row__column.fields-row__column-6 |