forked from asonix/mastodon
* 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
|