Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
310ef6b7
Verified
Commit
310ef6b7
authored
Jun 30, 2021
by
Alex Gleason
Browse files
Deletions: change User.purge/1 to defp, add CHANGELOG entry
parent
99cc26bb
Pipeline
#36733
passed with stages
in 6 minutes and 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
310ef6b7
...
...
@@ -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
...
...
lib/pleroma/user.ex
View file @
310ef6b7
...
...
@@ -1730,7 +1730,7 @@ def purge_user_changeset(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
def
p
purge
(%
User
{}
=
user
)
do
user
|>
purge_user_changeset
()
|>
update_and_set_cache
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment