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

This commit is contained in:
Claire
2021-07-17 17:45:35 +02:00
8 changed files with 19 additions and 36 deletions

View File

@ -42,7 +42,7 @@ class Settings::DeletesController < Settings::BaseController
end
def destroy_account!
current_account.suspend!(origin: :local)
current_account.suspend!(origin: :local, block_email: false)
AccountDeletionWorker.perform_async(current_user.account_id)
sign_out
end