mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 17:28:07 +01:00
4a618908e8
* Add form for account deletion * If avatar or header are gone from source, remove them * Add option to have SuspendAccountService remove user record, add tests * Exclude suspended accounts from search
11 lines
252 B
Ruby
11 lines
252 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::SuspensionWorker
|
|
include Sidekiq::Worker
|
|
|
|
sidekiq_options queue: 'pull'
|
|
|
|
def perform(account_id, remove_user = false)
|
|
SuspendAccountService.new.call(Account.find(account_id), remove_user)
|
|
end
|
|
end
|