Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2021-08-20 13:01:50 +02:00
16 changed files with 412 additions and 220 deletions

View File

@@ -142,6 +142,7 @@ class ResolveAccountService < BaseService
end
def queue_deletion!
@account.suspend!(origin: :remote)
AccountDeletionWorker.perform_async(@account.id, reserve_username: false, skip_activitypub: true)
end

View File

@@ -1,13 +1,14 @@
# frozen_string_literal: true
class UnsuspendAccountService < BaseService
include Payloadable
def call(account)
@account = account
unsuspend!
refresh_remote_account!
return if @account.nil?
return if @account.nil? || @account.suspended?
merge_into_home_timelines!
merge_into_list_timelines!