summaryrefslogtreecommitdiff
path: root/test/tasks/user_test.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-04-29 14:26:31 +0300
committerrinpatch <rinpatch@sdf.org>2020-05-01 00:38:58 +0300
commit61889e00fc4a77e92ed7af3b6a270d10d5b2f34b (patch)
tree05eadfdac17a8c6cb2e01a8fcb5b1a9558319f74 /test/tasks/user_test.exs
parent3b15a0eecc62f79465620a697f12b576ed87b0fc (diff)
downloadpleroma-61889e00fc4a77e92ed7af3b6a270d10d5b2f34b.tar.gz
pleroma-61889e00fc4a77e92ed7af3b6a270d10d5b2f34b.zip
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.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tasks/user_test.exs b/test/tasks/user_test.exs
index b45f37263..22030a423 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