You-might-like: liked-entity fallback when the section is thin (#790) #95

Merged
bvandeusen merged 2 commits from dev into main 2026-06-11 23:33:26 -04:00
Showing only changes of commit 26c368c35e - Show all commits
+2 -6
View File
@@ -228,9 +228,7 @@ func topUpYouMightLikeArtists(
if _, dup := excluded[r.Artist.ID]; dup {
continue
}
result = append(result, dbq.ListYouMightLikeArtistsForUserRow{
Artist: r.Artist, CoverAlbumID: r.CoverAlbumID, AlbumCount: r.AlbumCount,
})
result = append(result, dbq.ListYouMightLikeArtistsForUserRow(r))
if len(result) >= HomeYouMightLikeLimit {
break
}
@@ -261,9 +259,7 @@ func topUpYouMightLikeAlbums(
if _, dup := excluded[r.Album.ID]; dup {
continue
}
result = append(result, dbq.ListYouMightLikeAlbumsForUserRow{
Album: r.Album, ArtistName: r.ArtistName,
})
result = append(result, dbq.ListYouMightLikeAlbumsForUserRow(r))
if len(result) >= HomeYouMightLikeLimit {
break
}