diff --git a/app/services/concerns/account_limitable.rb b/app/services/concerns/account_scope.rb similarity index 97% rename from app/services/concerns/account_limitable.rb rename to app/services/concerns/account_scope.rb index bd4cbd993b..43bef653bd 100644 --- a/app/services/concerns/account_limitable.rb +++ b/app/services/concerns/account_scope.rb @@ -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 diff --git a/app/workers/delivery_emoji_reaction_worker.rb b/app/workers/delivery_emoji_reaction_worker.rb index 09dc85f418..7115c1e9d0 100644 --- a/app/workers/delivery_emoji_reaction_worker.rb +++ b/app/workers/delivery_emoji_reaction_worker.rb @@ -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