Skip to content

Commit

Permalink
Expose poll media support in instance api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEssem committed Feb 24, 2024
1 parent 1c9e03c commit c540156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/serializers/rest/instance_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def configuration
},

polls: {
allow_media: true,
max_options: PollValidator::MAX_OPTIONS,
max_characters_per_option: PollValidator::MAX_OPTION_CHARS,
min_expiration: PollValidator::MIN_EXPIRATION,
Expand Down
1 change: 1 addition & 0 deletions app/serializers/rest/v1/instance_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def configuration
},

polls: {
allow_media: true,
max_options: PollValidator::MAX_OPTIONS,
max_characters_per_option: PollValidator::MAX_OPTION_CHARS,
min_expiration: PollValidator::MIN_EXPIRATION,
Expand Down

0 comments on commit c540156

Please sign in to comment.