From d60fd87e0191ad05d8dd7f2e8d7d265db6f168d3 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 3 Jan 2018 00:38:02 +0100 Subject: [PATCH] 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. --- app/lib/activitypub/activity/delete.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lib/activitypub/activity/delete.rb b/app/lib/activitypub/activity/delete.rb index d0fb49342..5fa60a81c 100644 --- a/app/lib/activitypub/activity/delete.rb +++ b/app/lib/activitypub/activity/delete.rb @@ -13,6 +13,7 @@ class ActivityPub::Activity::Delete < ActivityPub::Activity def delete_person SuspendAccountService.new.call(@account) + @account.destroy! end def delete_note