mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-30 23:33:42 +01:00
change default reaction limit to 1
This commit is contained in:
parent
e247dd17ed
commit
f535ddc445
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
class StatusReactionValidator < ActiveModel::Validator
|
class StatusReactionValidator < ActiveModel::Validator
|
||||||
SUPPORTED_EMOJIS = Oj.load_file(Rails.root.join('app', 'javascript', 'mastodon', 'features', 'emoji', 'emoji_map.json').to_s).keys.freeze
|
SUPPORTED_EMOJIS = Oj.load_file(Rails.root.join('app', 'javascript', 'mastodon', 'features', 'emoji', 'emoji_map.json').to_s).keys.freeze
|
||||||
|
|
||||||
LIMIT = [1, (ENV['MAX_REACTIONS'] || 8).to_i].max
|
LIMIT = [1, (ENV['MAX_REACTIONS'] || 1).to_i].max
|
||||||
|
|
||||||
def validate(reaction)
|
def validate(reaction)
|
||||||
return if reaction.name.blank?
|
return if reaction.name.blank?
|
||||||
|
|
Loading…
Reference in a new issue