Fix fetching deleted accounts

This commit is contained in:
perp 2024-06-06 20:07:47 +01:00
parent 9b2f52c4a4
commit 35978f596e

View File

@ -21,6 +21,11 @@ func Fetch(ctx *context.Context) {
return return
} }
if ctx.Account.Username == "" {
ctx.Error(400, "InvalidToken")
return
}
// Create information // Create information
information := &v1.Account{ information := &v1.Account{
ID: ctx.Account.ID, ID: ctx.Account.ID,