Browse Source

Update InternalApiController

Daniel Supernault 6 năm trước cách đây
mục cha
commit
ebdb365cf8
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/Http/Controllers/InternalApiController.php

+ 2 - 2
app/Http/Controllers/InternalApiController.php

@@ -118,8 +118,8 @@ class InternalApiController extends Controller
               ->whereVisibility('public')
               ->whereNotIn('profile_id', $following)
               ->with('media')
-              ->orderBy('created_at', 'desc')
-              ->take(21)
+              ->inRandomOrder()
+              ->take(36)
               ->get();
 
         $res = [