post_upgrade_worker.rb 352 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class ActivityPub::PostUpgradeWorker
  3. include Sidekiq::Worker
  4. sidekiq_options queue: 'pull'
  5. def perform(domain)
  6. Account.where(domain: domain)
  7. .where(protocol: :ostatus)
  8. .where.not(last_webfingered_at: nil)
  9. .in_batches
  10. .update_all(last_webfingered_at: nil)
  11. end
  12. end