Browse Source

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

Add self posts to personal timeline
daniel 7 năm trước cách đây
mục cha
commit
8d29b2aad4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)