Fix fetching deleted accounts
This commit is contained in:
parent
9b2f52c4a4
commit
35978f596e
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user