From 5526b1b39b1c74373ac7d6d1bfbf46d9bb87c5a9 Mon Sep 17 00:00:00 2001 From: fef Date: Wed, 30 Nov 2022 12:01:34 +0000 Subject: [PATCH] change default reaction limit to 1 --- app/validators/status_reaction_validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/validators/status_reaction_validator.rb b/app/validators/status_reaction_validator.rb index fa6fb2e76..a60271dd8 100644 --- a/app/validators/status_reaction_validator.rb +++ b/app/validators/status_reaction_validator.rb @@ -3,7 +3,7 @@ class StatusReactionValidator < ActiveModel::Validator 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) return if reaction.name.blank?