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

class DeleteMuteWorker
  include Sidekiq::Worker

  def perform(mute_id)
    mute = Mute.find_by(id: mute_id)
    UnmuteService.new.call(mute.account, mute.target_account) if mute&.expired?
  end
end