fix: delete apps and app_data when deleting user
This commit is contained in:
parent
63d3c2350d
commit
f05074ffc5
1 changed files with 5 additions and 0 deletions
|
@ -537,6 +537,11 @@ impl DataManager {
|
|||
self.delete_userfollow(follow.id, &user, true).await?;
|
||||
}
|
||||
|
||||
// delete apps
|
||||
for app in self.get_apps_by_owner(id).await? {
|
||||
self.delete_app(app.id, &user).await?;
|
||||
}
|
||||
|
||||
// remove images
|
||||
let avatar = PathBufD::current().extend(&[
|
||||
self.0.0.dirs.media.as_str(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue