Explorar o código

Merge pull request #1353 from pixelfed/frontend-ui-refactor

Update InternalApiController
daniel %!s(int64=6) %!d(string=hai) anos
pai
achega
972abf1574
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')
               ->whereNotIn('profile_id', $following)
               ->with('media')
-              ->orderBy('created_at', 'desc')
-              ->take(21)
+              ->inRandomOrder()
+              ->take(36)
               ->get();
 
         $res = [