diff options
author | rinpatch <rinpatch@sdf.org> | 2020-04-29 14:26:31 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-05-02 19:05:13 +0300 |
commit | e55876409b523d81bc19db876bc90f29ba80a47c (patch) | |
tree | b85e0ab309c870f2b5bbb6d3bd94b0dff3de3856 /test/tasks/user_test.exs | |
parent | e186d9941d4cf4708186681fcea60b23919c46ed (diff) | |
download | pleroma-e55876409b523d81bc19db876bc90f29ba80a47c.tar.gz |
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
Diffstat (limited to 'test/tasks/user_test.exs')
-rw-r--r-- | test/tasks/user_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tasks/user_test.exs b/test/tasks/user_test.exs index 8df835b56..0f6ffb2b1 100644 --- a/test/tasks/user_test.exs +++ b/test/tasks/user_test.exs @@ -92,7 +92,7 @@ defmodule Mix.Tasks.Pleroma.UserTest do assert_received {:mix_shell, :info, [message]} assert message =~ " deleted" - refute User.get_by_nickname(user.nickname) + assert %{deactivated: true} = User.get_by_nickname(user.nickname) end test "no user to delete" do |