diff --git a/app/Models/Track.php b/app/Models/Track.php index d483300d..30c8c3fe 100644 --- a/app/Models/Track.php +++ b/app/Models/Track.php @@ -341,7 +341,7 @@ class Track extends Model implements Searchable, Commentable, Favouritable '.$explicitFilter.' GROUP BY track_id ORDER BY weight DESC - LIMIT 30;'; + LIMIT '.$count; $countQuery = DB::select(DB::raw($queryText));