Explorar o código

Revert StoryController update

Daniel Supernault %!s(int64=5) %!d(string=hai) anos
pai
achega
e30823dbf2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()