Fix Holly breaking mastodon

This commit is contained in:
Holly 2025-03-05 00:12:03 +00:00
parent 7271a794d6
commit 54259d0987
1 changed files with 1 additions and 1 deletions

View File

@ -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