2017-05-04 20:23:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Pubsubhubbub::SubscribeWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
|
|
|
sidekiq_options queue: 'push'
|
|
|
|
|
|
|
|
def perform(account_id)
|
|
|
|
account = Account.find(account_id)
|
2017-05-06 07:05:03 -04:00
|
|
|
logger.debug "PuSH re-subscribing to #{account.acct}"
|
2017-05-04 20:23:01 -04:00
|
|
|
::SubscribeService.new.call(account)
|
|
|
|
end
|
|
|
|
end
|