mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 02:01:36 +01:00
bypass reaction limit for foreign accounts
This commit is contained in:
parent
c957eb758c
commit
303cd4038a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue