From 48bc0b83755bd1ee0e62e4546fd77e3e06c3fb5e 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 d0fb493425..5fa60a81c6 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