Change avatar and account header description limit and expose it in API (#38384)

This commit is contained in:
Claire
2026-03-25 13:32:47 +01:00
committed by GitHub
parent 45e7c7a5e1
commit 7583d07d3a
4 changed files with 14 additions and 3 deletions

View File

@@ -66,8 +66,15 @@ RSpec.describe 'Instances' do
include(
configuration: include(
accounts: include(
max_display_name_length: Account::DISPLAY_NAME_LENGTH_LIMIT,
max_note_length: Account::NOTE_LENGTH_LIMIT,
max_avatar_description_length: Account::Avatar::MAX_DESCRIPTION_LENGTH,
max_header_description_length: Account::Header::MAX_DESCRIPTION_LENGTH,
max_featured_tags: FeaturedTag::LIMIT,
max_pinned_statuses: StatusPinValidator::PIN_LIMIT
max_pinned_statuses: StatusPinValidator::PIN_LIMIT,
max_profile_fields: Account::DEFAULT_FIELDS_SIZE,
profile_field_name_limit: Account::Field::MAX_CHARACTERS_LOCAL,
profile_field_value_limit: Account::Field::MAX_CHARACTERS_LOCAL
),
statuses: include(
max_characters: StatusLengthValidator::MAX_CHARS,