diff --git a/app/Http/Controllers/Api/Web/AlbumsController.php b/app/Http/Controllers/Api/Web/AlbumsController.php index 8a9ca20f..0442b850 100644 --- a/app/Http/Controllers/Api/Web/AlbumsController.php +++ b/app/Http/Controllers/Api/Web/AlbumsController.php @@ -129,7 +129,8 @@ class AlbumsController extends ApiControllerBase ->with('user', 'user.avatar', 'cover') ->userDetails() ->orderBy('title', 'asc') - ->where('track_count', '>', 0); + // An album with only one track is not really an album. + ->where('track_count', '>', 1); $count = $query->count(); $perPage = 40; diff --git a/app/Http/Controllers/Api/Web/PlaylistsController.php b/app/Http/Controllers/Api/Web/PlaylistsController.php index 1147c627..2b5e70f5 100644 --- a/app/Http/Controllers/Api/Web/PlaylistsController.php +++ b/app/Http/Controllers/Api/Web/PlaylistsController.php @@ -76,7 +76,8 @@ class PlaylistsController extends ApiControllerBase 'tracks.album', 'tracks.album.user') ->userDetails() - ->where('track_count', '>', 0) + // A playlist with only one track is not much of a list. + ->where('track_count', '>', 1) ->whereIsPublic(true); $this->applyFilters($query);