Browse Source

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

features/ingestion-unfollow
Alex Gleason 2 years ago
parent
commit
310ef6b70d
No known key found for this signature in database GPG Key ID: 7211D1F99744FBB7
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      CHANGELOG.md
  2. +1
    -1
      lib/pleroma/user.ex

+ 2
- 0
CHANGELOG.md View File

@@ -26,6 +26,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed
- Don't crash so hard when email settings are invalid.
- Checking activated Upload Filters for required commands.
- Remote users can no longer reappear after being deleted.
- Deactivated users may now be deleted.
- Mix task `pleroma.database prune_objects`

### Removed


+ 1
- 1
lib/pleroma/user.ex 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()


Loading…
Cancel
Save