mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-27 10:43:43 +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
|