Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit f77f112

Browse files
committed
Show only tracks with preview
1 parent 01c8c50 commit f77f112

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Controllers/SpotifyController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ public function renderExplore(): Renderable
515515
$alreadyRated = SpotifyTrack::whereIn('id', auth()->user()->spotifyRatedTracks()->select(['track_id']))->select('track_id');
516516
$trackToExplore = SpotifyTrack::whereNotIn('track_id', $tracks)
517517
->whereNotIn('track_id', $alreadyRated)
518+
->where('preview_url', '<>', null)
518519
->orderByDesc('popularity')
519520
->first();
520521

0 commit comments

Comments
 (0)