1
0
Fork 0
forked from mirror/pixelfed

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

Add self posts to personal timeline
This commit is contained in:
daniel 2018-06-03 21:39:29 -06:00 committed by GitHub
commit 8d29b2aad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)