From 523d90cdec027e9caa7879ae1e6f5adb9518398f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 8 Jan 2020 18:05:20 -0700 Subject: [PATCH] Update StoryController --- app/Http/Controllers/StoryController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/StoryController.php b/app/Http/Controllers/StoryController.php index 49087550..f097d05c 100644 --- a/app/Http/Controllers/StoryController.php +++ b/app/Http/Controllers/StoryController.php @@ -106,7 +106,7 @@ class StoryController extends Controller $stories = Story::with('profile') ->whereIn('profile_id', $following) - ->groupBy('profile_id') + ->groupBy(['id', 'profile_id']) ->where('expires_at', '>', now()) ->orderByDesc('expires_at') ->take(9)