Rename AccountLimitable module to AccountScope
This commit is contained in:
parent
d64f0df8a0
commit
ecce8edb84
2 changed files with 2 additions and 2 deletions
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue