mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-26 06:57:58 +01:00
Merged development into master
This commit is contained in:
commit
1a6169a0c0
1 changed files with 1 additions and 11 deletions
|
@ -73,17 +73,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getOwned() {
|
public function getOwned() {
|
||||||
$query = Track::summary()->where('user_id', \Auth::user()->id);
|
$query = Track::summary()->where('user_id', \Auth::user()->id)->orderBy('created_at', 'desc');
|
||||||
|
|
||||||
if (Input::has('published')) {
|
|
||||||
$published = \Input::get('published');
|
|
||||||
if ($published)
|
|
||||||
$query->whereNotNull('published_at');
|
|
||||||
else
|
|
||||||
$query->whereNull('published_at');
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->applyFilters($query);
|
|
||||||
|
|
||||||
$tracks = [];
|
$tracks = [];
|
||||||
foreach ($query->get() as $track)
|
foreach ($query->get() as $track)
|
||||||
|
|
Loading…
Reference in a new issue