Expose poll media support in instance api endpoint

This commit is contained in:
Essem 2024-01-06 23:28:58 -06:00
parent 8551eae7cc
commit 9bd21a726c
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
2 changed files with 2 additions and 0 deletions

View file

@ -73,6 +73,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
}, },
polls: { polls: {
allow_media: true,
max_options: PollValidator::MAX_OPTIONS, max_options: PollValidator::MAX_OPTIONS,
max_characters_per_option: PollValidator::MAX_OPTION_CHARS, max_characters_per_option: PollValidator::MAX_OPTION_CHARS,
min_expiration: PollValidator::MIN_EXPIRATION, min_expiration: PollValidator::MIN_EXPIRATION,

View file

@ -92,6 +92,7 @@ class REST::V1::InstanceSerializer < ActiveModel::Serializer
}, },
polls: { polls: {
allow_media: true,
max_options: PollValidator::MAX_OPTIONS, max_options: PollValidator::MAX_OPTIONS,
max_characters_per_option: PollValidator::MAX_OPTION_CHARS, max_characters_per_option: PollValidator::MAX_OPTION_CHARS,
min_expiration: PollValidator::MIN_EXPIRATION, min_expiration: PollValidator::MIN_EXPIRATION,