소스 검색

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')
 			->whereIn('profile_id', $following)
-			->groupBy(['id', 'profile_id'])
 			->where('expires_at', '>', now())
+			->groupBy('profile_id')
 			->orderByDesc('expires_at')
 			->take(9)
 			->get()