Explorar o código

Add self posts to personal timeline

Closes #85
Daniel Supernault %!s(int64=7) %!d(string=hai) anos
pai
achega
e88777ed57
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/Http/Controllers/TimelineController.php

+ 1 - 0
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)