add: delete uploads and polls when user is deleted

This commit is contained in:
trisua 2025-06-07 21:18:28 -04:00
parent f6eb46e7e8
commit 40fce4bc77
6 changed files with 66 additions and 5 deletions

View file

@ -1547,7 +1547,7 @@ impl DataManager {
// remove poll
if y.poll_id != 0 {
self.delete_poll(y.poll_id, user).await?;
self.delete_poll(y.poll_id, &user).await?;
}
// return