فهرست منبع

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)