mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 14:37:59 +01:00
added: playlist sort by favourite_count on initial request
update: added composer lock file to gitignore
This commit is contained in:
parent
cea48c6d83
commit
950ef3b585
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,3 +7,4 @@ Homestead.yaml
|
||||||
.vagrant
|
.vagrant
|
||||||
_ide_helper.php
|
_ide_helper.php
|
||||||
.idea
|
.idea
|
||||||
|
composer.lock
|
||||||
|
|
|
@ -72,7 +72,7 @@ class PlaylistsController extends ApiControllerBase
|
||||||
$query = Playlist::summary()
|
$query = Playlist::summary()
|
||||||
->with('user', 'user.avatar', 'tracks', 'tracks.cover', 'tracks.user', 'tracks.album', 'tracks.album.user')
|
->with('user', 'user.avatar', 'tracks', 'tracks.cover', 'tracks.user', 'tracks.album', 'tracks.album.user')
|
||||||
->userDetails()
|
->userDetails()
|
||||||
->orderBy('title', 'asc')
|
->orderBy('favourite_count', 'desc')
|
||||||
->where('track_count', '>', 0)
|
->where('track_count', '>', 0)
|
||||||
->whereIsPublic(true);
|
->whereIsPublic(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue