only display now playing on page 1

This commit is contained in:
2026-02-28 01:23:38 -08:00
parent a5d0860292
commit 1af3efd7b4

View File

@@ -82,10 +82,12 @@ func profilePageHandler() http.HandlerFunc {
return
}
if pageInt == 1 {
if np, ok := scrobble.GetNowPlaying(userId); ok {
profileData.NowPlayingArtist = np.Artist
profileData.NowPlayingTitle = np.SongName
}
}
rows, err := db.Pool.Query(
r.Context(),