mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 04:25:06 +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
12 lines
252 B
Ruby
12 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
|