Skip to content

Commit b25b815

Browse files
ClearlyClairehiyuki2578
authored andcommitted
Widen allowed time windows for polls (mastodon#10162)
1 parent 3e71bc7 commit b25b815

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/validators/poll_validator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
class PollValidator < ActiveModel::Validator
44
MAX_OPTIONS = 4
55
MAX_OPTION_CHARS = 25
6-
MAX_EXPIRATION = 7.days.freeze
7-
MIN_EXPIRATION = 1.day.freeze
6+
MAX_EXPIRATION = 1.month.freeze
7+
MIN_EXPIRATION = 5.minutes.freeze
88

99
def validate(poll)
1010
current_time = Time.now.utc

0 commit comments

Comments
 (0)