about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-03-04 22:46:38 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-03-04 22:46:38 +0100
commitf2a1b8b96b031db3a479de029a29e04e28c55352 (patch)
tree50852f4910e69aca949cf035b2c3f00cb6a9222f
parent3de71887d849103ed62e8b04b54c630763881010 (diff)
Widen allowed time windows for polls (#10162)
-rw-r--r--app/validators/poll_validator.rb4
1 files changed, 2 insertions, 2 deletions
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