about summary refs log tree commit diff
path: root/app/workers/clear_reblogs_worker.rb
blob: 69c8afc59d39ea48ba3f7b1aef24cf544cebc9df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class ClearReblogsWorker
  include Sidekiq::Worker

  def perform(account_id)
    FeedManager.instance.clear_reblogs_from_home(Account.find(account_id))
  rescue ActiveRecord::RecordNotFound
    true
  end
end