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 May 30, 2024
1 parent 849a9ea commit c1520e3
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 @@ -74,6 +74,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 c1520e3

Please sign in to comment.