Procházet zdrojové kódy

Add self posts to personal timeline

Closes #85
Daniel Supernault před 7 roky
rodič
revize
e88777ed57
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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
       // TODO: Use redis for timelines
       $following = Follower::whereProfileId(Auth::user()->profile->id)->pluck('following_id');
       $following = Follower::whereProfileId(Auth::user()->profile->id)->pluck('following_id');
+      $following->push(Auth::user()->profile->id);
       $timeline = Status::whereHas('media')
       $timeline = Status::whereHas('media')
                   ->whereNull('in_reply_to_id')
                   ->whereNull('in_reply_to_id')
                   ->whereIn('profile_id', $following)
                   ->whereIn('profile_id', $following)