Fix profile view follow & ban status, Add ban status in GET profile API call

This commit is contained in:
Marco Realacci 2022-12-12 12:37:30 +01:00
parent 00e6b3de7b
commit 4c4481393d
8 changed files with 39 additions and 16 deletions

View file

@ -10,10 +10,10 @@ type UIDName struct {
}
type SearchResult struct {
UID string `json:"user_id"`
Name string `json:"name"`
Followed bool `json:"followed"`
Banned bool `json:"banned"`
UID string `json:"user_id"`
Name string `json:"name"`
Followed bool `json:"followed"`
Banned bool `json:"banned"`
}
type GenericResponse struct {
@ -52,5 +52,6 @@ type UserProfile struct {
Following int64 `json:"following"`
Followers int64 `json:"followers"`
Followed bool `json:"followed"`
Banned bool `json:"banned"`
Photos int64 `json:"photos"`
}