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>
Thu, 30 Apr 2020 21:38:58 +0000 (00:38 +0300)
commit61889e00fc4a77e92ed7af3b6a270d10d5b2f34b
tree05eadfdac17a8c6cb2e01a8fcb5b1a9558319f74
parent3b15a0eecc62f79465620a697f12b576ed87b0fc
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