hide hidden releases from unauthorised /api/v1/artist/{id}

This commit is contained in:
ari melody 2024-09-12 09:56:22 +01:00
parent e69cf78e57
commit 1846203076
Signed by: ari
GPG key ID: CF99829C92678188
3 changed files with 11 additions and 8 deletions

View file

@ -25,7 +25,7 @@ func serveArtist() http.Handler {
return
}
credits, err := music.GetArtistCredits(global.DB, artist.ID)
credits, err := music.GetArtistCredits(global.DB, artist.ID, true)
if err != nil {
fmt.Printf("Error rendering admin track page for %s: %s\n", id, err)
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)