mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 12:22:35 +02:00
Fix profile view follow & ban status, Add ban status in GET profile API call
This commit is contained in:
parent
00e6b3de7b
commit
4c4481393d
8 changed files with 39 additions and 16 deletions
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue