You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
352 B

  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