mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-29 13:09:04 +01:00
Widen allowed time windows for polls (#10162)
This commit is contained in:
parent
3de71887d8
commit
f2a1b8b96b
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@
|
||||||
class PollValidator < ActiveModel::Validator
|
class PollValidator < ActiveModel::Validator
|
||||||
MAX_OPTIONS = 4
|
MAX_OPTIONS = 4
|
||||||
MAX_OPTION_CHARS = 25
|
MAX_OPTION_CHARS = 25
|
||||||
MAX_EXPIRATION = 7.days.freeze
|
MAX_EXPIRATION = 1.month.freeze
|
||||||
MIN_EXPIRATION = 1.day.freeze
|
MIN_EXPIRATION = 5.minutes.freeze
|
||||||
|
|
||||||
def validate(poll)
|
def validate(poll)
|
||||||
current_time = Time.now.utc
|
current_time = Time.now.utc
|
||||||
|
|
Loading…
Reference in a new issue