From a95d344352d71a885735f5eb0890d85e7c6dafe9 Mon Sep 17 00:00:00 2001 From: perennial Date: Fri, 11 Oct 2024 18:35:43 +1100 Subject: [PATCH] reanme GetUserArtwork to GetUserProfile --- core/user.go | 2 +- server/routes/user.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/user.go b/core/user.go index 200764a..a32db6b 100644 --- a/core/user.go +++ b/core/user.go @@ -336,7 +336,7 @@ func handleSeriesData(series json.RawMessage, category UserArtCategory) ([]Novel return novelSeries, mangaSeries } -func GetUserArtwork(r *http.Request, id string, category UserArtCategory, page int, getTags bool) (User, error) { +func GetUserProfile(r *http.Request, id string, category UserArtCategory, page int, getTags bool) (User, error) { var user User // Initialize all count fields diff --git a/server/routes/user.go b/server/routes/user.go index 33fd07e..604cc2b 100644 --- a/server/routes/user.go +++ b/server/routes/user.go @@ -33,7 +33,7 @@ func fetchData(r *http.Request, getTags bool) (userPageData, error) { return userPageData{}, err } - user, err := core.GetUserArtwork(r, id, category, page, getTags) + user, err := core.GetUserProfile(r, id, category, page, getTags) if err != nil { return userPageData{}, err }