Update TimelineController

pull/386/head
Daniel Supernault 2018-08-15 20:03:32 -06:00
rodzic 865a7c4da5
commit 5f13428197
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -20,6 +20,7 @@ class TimelineController extends Controller
$following->push(Auth::user()->profile->id);
$timeline = Status::whereIn('profile_id', $following)
->orderBy('id','desc')
->withCount(['comments', 'likes'])
->simplePaginate(20);
$type = 'personal';
return view('timeline.template', compact('timeline', 'type'));
@ -31,6 +32,7 @@ class TimelineController extends Controller
// $timeline = Timeline::build()->local();
$timeline = Status::whereHas('media')
->whereNull('in_reply_to_id')
->withCount(['comments', 'likes'])
->orderBy('id','desc')
->simplePaginate(20);
$type = 'local';