mirror of
https://github.com/riwiwa/muzi.git
synced 2026-02-28 03:46:57 -08:00
only display now playing on page 1
This commit is contained in:
@@ -82,9 +82,11 @@ func profilePageHandler() http.HandlerFunc {
|
||||
return
|
||||
}
|
||||
|
||||
if np, ok := scrobble.GetNowPlaying(userId); ok {
|
||||
profileData.NowPlayingArtist = np.Artist
|
||||
profileData.NowPlayingTitle = np.SongName
|
||||
if pageInt == 1 {
|
||||
if np, ok := scrobble.GetNowPlaying(userId); ok {
|
||||
profileData.NowPlayingArtist = np.Artist
|
||||
profileData.NowPlayingTitle = np.SongName
|
||||
}
|
||||
}
|
||||
|
||||
rows, err := db.Pool.Query(
|
||||
|
||||
Reference in New Issue
Block a user