Skip to content
Snippets Groups Projects
Unverified Commit d60fd87e authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Don't leave behind husk of remotely-deleted profile (#6159)

There's no reason for an Account record to persist after Delete->Actor is received. SuspendAccountService is necessary to make sure deleted toots get sent over streaming API properly and home feeds get cleaned up. By removing Account record, we can ensure that if in the future the account is restored remotely (or username reused), it can start with a clean slate.
parent 94230fe5
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ class ActivityPub::Activity::Delete < ActivityPub::Activity
def delete_person
SuspendAccountService.new.call(@account)
@account.destroy!
end
def delete_note
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment