Merge pull request #190 from dansup/frontend-ui-refactor

Add self posts to personal timeline
pull/135/head^2
daniel 2018-06-03 21:39:29 -06:00 zatwierdzone przez GitHub
commit 8d29b2aad4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -17,6 +17,7 @@ class TimelineController extends Controller
{
// TODO: Use redis for timelines
$following = Follower::whereProfileId(Auth::user()->profile->id)->pluck('following_id');
$following->push(Auth::user()->profile->id);
$timeline = Status::whereHas('media')
->whereNull('in_reply_to_id')
->whereIn('profile_id', $following)