mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-23 08:34:13 -05:00
Expose poll media support in instance api endpoint
This commit is contained in:
parent
849a9ea0de
commit
c1520e38aa
@ -74,6 +74,7 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
||||
},
|
||||
|
||||
polls: {
|
||||
allow_media: true,
|
||||
max_options: PollValidator::MAX_OPTIONS,
|
||||
max_characters_per_option: PollValidator::MAX_OPTION_CHARS,
|
||||
min_expiration: PollValidator::MIN_EXPIRATION,
|
||||
|
@ -92,6 +92,7 @@ class REST::V1::InstanceSerializer < ActiveModel::Serializer
|
||||
},
|
||||
|
||||
polls: {
|
||||
allow_media: true,
|
||||
max_options: PollValidator::MAX_OPTIONS,
|
||||
max_characters_per_option: PollValidator::MAX_OPTION_CHARS,
|
||||
min_expiration: PollValidator::MIN_EXPIRATION,
|
||||
|
Loading…
Reference in New Issue
Block a user