Преглед на файлове

Revert StoryController update

Daniel Supernault преди 5 години
родител
ревизия
e30823dbf2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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')
 		$stories = Story::with('profile')
 			->whereIn('profile_id', $following)
 			->whereIn('profile_id', $following)
-			->groupBy(['id', 'profile_id'])
 			->where('expires_at', '>', now())
 			->where('expires_at', '>', now())
+			->groupBy('profile_id')
 			->orderByDesc('expires_at')
 			->orderByDesc('expires_at')
 			->take(9)
 			->take(9)
 			->get()
 			->get()