From 614b951c5e29668c5854b8fc2883380f86f8af58 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 9 Oct 2018 19:22:09 -0600 Subject: [PATCH] Update AccountController --- app/Http/Controllers/AccountController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index f7af111cf..2090f599e 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -64,12 +64,12 @@ class AccountController extends Controller ]); $profile = Auth::user()->profile; $action = $request->input('a'); - $timeago = Carbon::now()->subMonths(1); + $timeago = Carbon::now()->subMonths(3); $following = $profile->following->pluck('id'); $notifications = Notification::whereIn('actor_id', $following) ->where('profile_id', '!=', $profile->id) ->whereDate('created_at', '>', $timeago) - ->orderBy('notifications.id', 'desc') + ->orderBy('notifications.created_at', 'desc') ->simplePaginate(30); return view('account.following', compact('profile', 'notifications'));