Rename AccountLimitable module to AccountScope

This commit is contained in:
KMY 2023-05-15 17:58:04 +09:00
parent d64f0df8a0
commit ecce8edb84
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# frozen_string_literal: true
module AccountLimitable
module AccountScope
def scope_status(status)
case status.visibility.to_sym
when :public, :unlisted, :public_unlisted

View file

@ -4,7 +4,7 @@ class DeliveryEmojiReactionWorker
include Sidekiq::Worker
include Redisable
include Lockable
include AccountLimitable
include AccountScope
def perform(payload_json, status_id, my_account_id = nil)
redis.publish("timeline:#{my_account_id}", payload_json) if my_account_id.present? && !Account.find(my_account_id)&.user&.setting_stop_emoji_reaction_streaming