mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
8a880a3d46
in the background instead. Should fix delay where blocked person can interact with blocker for a short time before background job gets processed
10 lines
221 B
Ruby
10 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
|