Deletions: change User.purge/1 to defp, add CHANGELOG entry

This commit is contained in:
Alex Gleason 2021-06-30 12:25:20 -05:00
commit 310ef6b70d
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 3 additions and 1 deletions

View file

@ -1730,7 +1730,7 @@ defmodule Pleroma.User do
# Purge doesn't delete the user from the database.
# It just nulls all its fields and deactivates it.
# See `User.purge_user_changeset/1` above.
def purge(%User{} = user) do
defp purge(%User{} = user) do
user
|> purge_user_changeset()
|> update_and_set_cache()