parent
f30b6f55e2
commit
230c621843
4 changed files with 75 additions and 1 deletions
|
@ -16,6 +16,8 @@ class EmojiReactService < BaseService
|
|||
authorize_with account, status, :emoji_reaction?
|
||||
@status = status
|
||||
|
||||
raise Mastodon::ValidationError, I18n.t('reactions.errors.banned') if account.silenced? && !status.account.following?(account)
|
||||
|
||||
with_redis_lock("emoji_reaction:#{status.id}") do
|
||||
shortcode, domain = name.split('@')
|
||||
domain = nil if TagManager.instance.local_domain?(domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue