bypass reaction limit for foreign accounts

This commit is contained in:
fef 2022-12-15 15:27:54 +00:00 committed by Jeremy Kescher
parent 5ec5a782d4
commit 5e46bec485
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4

View file

@ -9,7 +9,7 @@ class StatusReactionValidator < ActiveModel::Validator
return if reaction.name.blank?
reaction.errors.add(:name, I18n.t('reactions.errors.unrecognized_emoji')) if reaction.custom_emoji_id.blank? && !unicode_emoji?(reaction.name)
reaction.errors.add(:base, I18n.t('reactions.errors.limit_reached')) if limit_reached?(reaction)
reaction.errors.add(:base, I18n.t('reactions.errors.limit_reached')) if reaction.account.local? && limit_reached?(reaction)
end
private