Browse Source

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.
master
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
d60fd87e01
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/lib/activitypub/activity/delete.rb

+ 1
- 0
app/lib/activitypub/activity/delete.rb View File

@ -13,6 +13,7 @@ class ActivityPub::Activity::Delete < ActivityPub::Activity
def delete_person
SuspendAccountService.new.call(@account)
@account.destroy!
end
def delete_note

Loading…
Cancel
Save