compat: update mastodon patches
This commit is contained in:
parent
69cefa7261
commit
a48005eec4
|
@ -11,21 +11,21 @@ index bda2edb..1be1ce2 100644
|
|||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
diff --git a/app/validators/poll_validator.rb b/app/validators/poll_validator.rb
|
||||
index a327277..5d3134d 100644
|
||||
--- a/app/validators/poll_validator.rb
|
||||
+++ b/app/validators/poll_validator.rb
|
||||
diff --git a/app/validators/poll_options_validator.rb b/app/validators/poll_options_validator.rb
|
||||
index 0ac84f9..9393de8 100644
|
||||
--- a/app/validators/poll_options_validator.rb
|
||||
+++ b/app/validators/poll_options_validator.rb
|
||||
@@ -1,8 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class PollValidator < ActiveModel::Validator
|
||||
class PollOptionsValidator < ActiveModel::Validator
|
||||
- MAX_OPTIONS = 4
|
||||
- MAX_OPTION_CHARS = 50
|
||||
+ MAX_OPTIONS = 100
|
||||
+ MAX_OPTION_CHARS = 1000
|
||||
MAX_EXPIRATION = 1.month.freeze
|
||||
MIN_EXPIRATION = 5.minutes.freeze
|
||||
+ MAX_OPTION_CHARS = 500
|
||||
|
||||
def validate(poll)
|
||||
poll.errors.add(:options, I18n.t('polls.errors.too_few_options')) unless poll.options.size > 1
|
||||
diff --git a/app/validators/status_length_validator.rb b/app/validators/status_length_validator.rb
|
||||
index dc841de..f0f1b25 100644
|
||||
--- a/app/validators/status_length_validator.rb
|
||||
|
|
Loading…
Reference in a new issue