Record account deletion reasons.

This commit is contained in:
Jon Chambers
2020-10-16 15:04:55 -04:00
committed by Jon Chambers
parent d82b3dc429
commit 23ca011ac1
6 changed files with 30 additions and 12 deletions

View File

@@ -604,7 +604,7 @@ public class AccountController {
@DELETE
@Path("/me")
public void deleteAccount(@Auth Account account) {
accounts.delete(account);
accounts.delete(account, AccountsManager.DeletionReason.USER_REQUEST);
}
private boolean shouldAutoBlock(String requester) {