diff --git a/core/user.go b/core/user.go index a42b04f..8bf7a98 100644 --- a/core/user.go +++ b/core/user.go @@ -105,7 +105,7 @@ func GetUserProfile(r *http.Request, id string, category UserWorkCategory, page } // Parse social data - if err := user.ParseSocial(); err != nil { + if err := user.parseSocial(); err != nil { return User{}, err } @@ -514,7 +514,7 @@ func getUserBookmarks(r *http.Request, id, mode string, page int) ([]ArtworkBrie return artworks, body.Total, nil } -func (s *User) ParseSocial() error { +func (s *User) parseSocial() error { if string(s.SocialRaw[:]) == "[]" { // Fuck Pixiv return nil