bypass reaction limit for foreign accounts

main
fef 2 years ago
parent 6cad7718eb
commit c27dcb40e1
No known key found for this signature in database
GPG Key ID: EC22E476DC2D3D84

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

Loading…
Cancel
Save