0
0
Fork 0

Fix extremely rare race condition when deleting a toot or account (#17994)

This commit is contained in:
Claire 2022-04-08 19:17:37 +02:00 committed by GitHub
parent 8e20e16cf0
commit 3906dd67ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -65,8 +65,9 @@ class Api::V1::Admin::AccountsController < Api::BaseController
def destroy
authorize @account, :destroy?
json = render_to_body json: @account, serializer: REST::Admin::AccountSerializer
Admin::AccountDeletionWorker.perform_async(@account.id)
render json: @account, serializer: REST::Admin::AccountSerializer
render json: json
end
def unsensitive