From fa01c5d82d3a0e2b36401ef9fd10acc204b4be75 Mon Sep 17 00:00:00 2001 From: VnPower Date: Thu, 1 Feb 2024 15:09:45 +0700 Subject: [PATCH] Fix user background image not available --- core/webapi/user.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/core/webapi/user.go b/core/webapi/user.go index 34e33c6..b140676 100644 --- a/core/webapi/user.go +++ b/core/webapi/user.go @@ -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() {