ソースを参照

Update StoryController

Daniel Supernault 5 年 前
コミット
523d90cdec
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/Http/Controllers/StoryController.php

+ 1 - 1
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)