From: ThibG Date: Mon, 4 Mar 2019 21:46:38 +0000 (+0100) Subject: Widen allowed time windows for polls (#10162) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=f2a1b8b96b031db3a479de029a29e04e28c55352;p=mastodon.git Widen allowed time windows for polls (#10162) --- diff --git a/app/validators/poll_validator.rb b/app/validators/poll_validator.rb index a1c4f6851..d4ae4c16a 100644 --- a/app/validators/poll_validator.rb +++ b/app/validators/poll_validator.rb @@ -3,8 +3,8 @@ class PollValidator < ActiveModel::Validator MAX_OPTIONS = 4 MAX_OPTION_CHARS = 25 - MAX_EXPIRATION = 7.days.freeze - MIN_EXPIRATION = 1.day.freeze + MAX_EXPIRATION = 1.month.freeze + MIN_EXPIRATION = 5.minutes.freeze def validate(poll) current_time = Time.now.utc