mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix account deactivation
This commit is contained in:
parent
5cbfe4cda5
commit
1235bc14db
@ -247,7 +247,8 @@ def delete(username):
|
||||
|
||||
db.session.delete(user)
|
||||
elif "deactivate" in request.form:
|
||||
user.replies.delete()
|
||||
for reply in user.replies.all():
|
||||
db.session.delete(reply)
|
||||
for thread in user.threads.all():
|
||||
db.session.delete(thread)
|
||||
user.email = None
|
||||
|
Loading…
Reference in New Issue
Block a user