Browse Source

Revert StoryController update

Daniel Supernault 5 years ago
parent
commit
e30823dbf2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/StoryController.php

+ 1 - 1
app/Http/Controllers/StoryController.php

@@ -106,8 +106,8 @@ class StoryController extends Controller
 
 		$stories = Story::with('profile')
 			->whereIn('profile_id', $following)
-			->groupBy(['id', 'profile_id'])
 			->where('expires_at', '>', now())
+			->groupBy('profile_id')
 			->orderByDesc('expires_at')
 			->take(9)
 			->get()