瀏覽代碼

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)