mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +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() {
|
||||
$query = Track::summary()->where('user_id', \Auth::user()->id);
|
||||
|
||||
if (Input::has('published')) {
|
||||
$published = \Input::get('published');
|
||||
if ($published)
|
||||
$query->whereNotNull('published_at');
|
||||
else
|
||||
$query->whereNull('published_at');
|
||||
}
|
||||
|
||||
$this->applyFilters($query);
|
||||
$query = Track::summary()->where('user_id', \Auth::user()->id)->orderBy('created_at', 'desc');
|
||||
|
||||
$tracks = [];
|
||||
foreach ($query->get() as $track)
|
||||
|
|
Loading…
Reference in a new issue