From e88777ed57b64b4bace4d7911b91b15d24461f69 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 3 Jun 2018 21:38:29 -0600 Subject: [PATCH] Add self posts to personal timeline Closes #85 --- app/Http/Controllers/TimelineController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/TimelineController.php b/app/Http/Controllers/TimelineController.php index 8b6eaf7bf..c49b98b3b 100644 --- a/app/Http/Controllers/TimelineController.php +++ b/app/Http/Controllers/TimelineController.php @@ -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)