* Add: #591 リモート保留中アカウントからメンションが来た場合にuriを記録し、承認時にフェッチしに行く処理 * Rename fetch_remove_status_worker.rb to fetch_remote_status_worker.rb * Wip * Add lock code
14 lines
349 B
Ruby
14 lines
349 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ActivateRemoteAccountWorker
|
|
include Sidekiq::Worker
|
|
|
|
def perform(account_id)
|
|
account = Account.find_by(id: account_id)
|
|
return true if account.nil?
|
|
return true if account.suspended?
|
|
|
|
ActivateFollowRequestsService.new.call(account)
|
|
ActivateRemoteStatusesService.new.call(account)
|
|
end
|
|
end
|