mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-19 13:23:13 +00:00
Fix min/max duration poll limits being inverted
This commit is contained in:
parent
29a09858f6
commit
93daa97fc3
|
@ -15,8 +15,8 @@ class InitialStateSerializer < ActiveModel::Serializer
|
||||||
{
|
{
|
||||||
max_options: PollValidator::MAX_OPTIONS,
|
max_options: PollValidator::MAX_OPTIONS,
|
||||||
max_option_chars: PollValidator::MAX_OPTION_CHARS,
|
max_option_chars: PollValidator::MAX_OPTION_CHARS,
|
||||||
min_expiration: PollValidator::MAX_EXPIRATION,
|
min_expiration: PollValidator::MIN_EXPIRATION,
|
||||||
max_expiration: PollValidator::MIN_EXPIRATION,
|
max_expiration: PollValidator::MAX_EXPIRATION,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,8 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
||||||
{
|
{
|
||||||
max_options: PollValidator::MAX_OPTIONS,
|
max_options: PollValidator::MAX_OPTIONS,
|
||||||
max_option_chars: PollValidator::MAX_OPTION_CHARS,
|
max_option_chars: PollValidator::MAX_OPTION_CHARS,
|
||||||
min_expiration: PollValidator::MAX_EXPIRATION,
|
min_expiration: PollValidator::MIN_EXPIRATION,
|
||||||
max_expiration: PollValidator::MIN_EXPIRATION,
|
max_expiration: PollValidator::MAX_EXPIRATION,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue