Explorar o código

Update InternalApiController

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
ebdb365cf8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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')
               ->whereVisibility('public')
               ->whereNotIn('profile_id', $following)
               ->whereNotIn('profile_id', $following)
               ->with('media')
               ->with('media')
-              ->orderBy('created_at', 'desc')
-              ->take(21)
+              ->inRandomOrder()
+              ->take(36)
               ->get();
               ->get();
 
 
         $res = [
         $res = [