Deactivate local users on deletion instead of deleting the record
authorrinpatch <rinpatch@sdf.org>
Wed, 29 Apr 2020 11:26:31 +0000 (14:26 +0300)
committerrinpatch <rinpatch@sdf.org>
Sat, 2 May 2020 16:05:13 +0000 (19:05 +0300)
commite55876409b523d81bc19db876bc90f29ba80a47c
treeb85e0ab309c870f2b5bbb6d3bd94b0dff3de3856
parente186d9941d4cf4708186681fcea60b23919c46ed
Deactivate local users on deletion instead of deleting the record

Prevents the possibility of re-registration, which allowed to read
DMs of the deleted account.

Also includes a migration that tries to find any already deleted
accounts and insert skeletons for them.

Closes pleroma/pleroma#1687
lib/pleroma/user.ex
lib/pleroma/web/pleroma_api/controllers/pleroma_api_controller.ex
priv/repo/migrations/20200428221338_insert_skeletons_for_deleted_users.exs [new file with mode: 0644]
test/tasks/user_test.exs
test/user_test.exs
test/web/activity_pub/transmogrifier_test.exs