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,9 +82,11 @@ func profilePageHandler() http.HandlerFunc {
return return
} }
if np, ok := scrobble.GetNowPlaying(userId); ok { if pageInt == 1 {
profileData.NowPlayingArtist = np.Artist if np, ok := scrobble.GetNowPlaying(userId); ok {
profileData.NowPlayingTitle = np.SongName profileData.NowPlayingArtist = np.Artist
profileData.NowPlayingTitle = np.SongName
}
} }
rows, err := db.Pool.Query( rows, err := db.Pool.Query(