1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Add self posts to personal timeline

Closes #85
This commit is contained in:
Daniel Supernault 2018-06-03 21:38:29 -06:00
parent 4751832ad3
commit e88777ed57

View file

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