1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/app/workers/block_worker.rb
Eugen Rochko 8a880a3d46 Make blocks create entries and unfollows instantly, but do the clean up
in the background instead. Should fix delay where blocked person
can interact with blocker for a short time before background job
gets processed
2017-01-24 21:40:41 +01:00

9 lines
221 B
Ruby

# frozen_string_literal: true
class BlockWorker
include Sidekiq::Worker
def perform(account_id, target_account_id)
AfterBlockService.new.call(Account.find(account_id), Account.find(target_account_id))
end
end