Merge branch 'instance-profile-fields' into 'develop'

Add /api/v2/instance profile fields limits info used by Mastodon

See merge request pleroma/pleroma!4434
This commit is contained in:
nicole mikołajczyk 2026-01-30 23:04:49 +01:00
commit cb78699a3b
3 changed files with 22 additions and 0 deletions

View file

@ -342,6 +342,18 @@ defmodule Pleroma.Web.ApiSpec.InstanceOperation do
max_pinned_statuses: %Schema{
type: :integer,
description: "The maximum number of pinned statuses for each account."
},
max_profile_fields: %Schema{
type: :integer,
description: "The maximum number of custom profile fields allowed to be set."
},
profile_field_name_limit: %Schema{
type: :integer,
description: "The maximum size of a profile field name, in characters."
},
profile_field_value_limit: %Schema{
type: :integer,
description: "The maximum size of a profile field value, in characters."
}
}
},