diff --git a/core/user.go b/core/user.go index 11cb969..8aae933 100644 --- a/core/user.go +++ b/core/user.go @@ -515,6 +515,9 @@ func getUserFrequentTags(r *http.Request, ids string, category UserWorkCategory) } // Return early if there are no IDs + // + // NOTE: theoretically, this check should never be reached as fetchUserWorks doesn't call + // getUserFrequentTags when len(tagsIDs) == 0, instead returning an empty []FrequentTag if ids == "" { return tags, nil }