Fix user background image not available

This commit is contained in:
VnPower
2024-02-01 15:09:45 +07:00
parent 8c03c79085
commit fa01c5d82d
+11 -11
View File
@@ -20,20 +20,20 @@ type FrequentTag struct {
}
type User struct {
ID string `json:"userId"`
Name string `json:"name"`
Avatar string `json:"imageBig"`
BackgroundImage string `json:"background"`
Following int `json:"following"`
MyPixiv int `json:"mypixivCount"`
Comment template.HTML `json:"commentHtml"`
Webpage string `json:"webpage"`
SocialRaw json.RawMessage `json:"social"`
Artworks []ArtworkBrief `json:"artworks"`
ID string `json:"userId"`
Name string `json:"name"`
Avatar string `json:"imageBig"`
Following int `json:"following"`
MyPixiv int `json:"mypixivCount"`
Comment template.HTML `json:"commentHtml"`
Webpage string `json:"webpage"`
SocialRaw json.RawMessage `json:"social"`
Artworks []ArtworkBrief `json:"artworks"`
Background map[string]interface{} `json:"background"`
ArtworksCount int
FrequentTags []FrequentTag
Social map[string]map[string]string
Background map[string]interface{} `json:"background"`
BackgroundImage string
}
func (s *User) ParseSocial() {