Fix Holly breaking mastodon
This commit is contained in:
parent
7271a794d6
commit
54259d0987
|
@ -1,6 +1,6 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class PollValidator < ActiveModel::Validator
|
class PollOptionsValidator < ActiveModel::Validator
|
||||||
MAX_OPTIONS = (ENV['MAX_POLL_OPTIONS'] || 30).to_i
|
MAX_OPTIONS = (ENV['MAX_POLL_OPTIONS'] || 30).to_i
|
||||||
MAX_OPTION_CHARS = (ENV['MAX_POLL_OPTION_CHARS'] || 100).to_i
|
MAX_OPTION_CHARS = (ENV['MAX_POLL_OPTION_CHARS'] || 100).to_i
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue