Expose poll media support in instance api endpoint

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

View File

@ -74,6 +74,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,