You-might-like: liked-entity fallback when the section is thin (#790) #95
@@ -228,9 +228,7 @@ func topUpYouMightLikeArtists(
|
|||||||
if _, dup := excluded[r.Artist.ID]; dup {
|
if _, dup := excluded[r.Artist.ID]; dup {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
result = append(result, dbq.ListYouMightLikeArtistsForUserRow{
|
result = append(result, dbq.ListYouMightLikeArtistsForUserRow(r))
|
||||||
Artist: r.Artist, CoverAlbumID: r.CoverAlbumID, AlbumCount: r.AlbumCount,
|
|
||||||
})
|
|
||||||
if len(result) >= HomeYouMightLikeLimit {
|
if len(result) >= HomeYouMightLikeLimit {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -261,9 +259,7 @@ func topUpYouMightLikeAlbums(
|
|||||||
if _, dup := excluded[r.Album.ID]; dup {
|
if _, dup := excluded[r.Album.ID]; dup {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
result = append(result, dbq.ListYouMightLikeAlbumsForUserRow{
|
result = append(result, dbq.ListYouMightLikeAlbumsForUserRow(r))
|
||||||
Album: r.Album, ArtistName: r.ArtistName,
|
|
||||||
})
|
|
||||||
if len(result) >= HomeYouMightLikeLimit {
|
if len(result) >= HomeYouMightLikeLimit {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user