From 77c6acf53fe1888159f6591525c8fa456aa59d85 Mon Sep 17 00:00:00 2001 From: perennial Date: Sat, 19 Oct 2024 20:40:44 +1100 Subject: [PATCH] unexport ParseSocial() --- core/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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