logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

post_upgrade_worker.rb (352B)


  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