Explorar o código

Merge pull request #6081 from eufelipemateus/adjust-oderby-statuses-profile

fix: ordery by statutes profile
(dan)iel (sup)ernault hai 3 semanas
pai
achega
2e0b3829a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/PublicApiController.php

+ 1 - 1
app/Http/Controllers/PublicApiController.php

@@ -720,7 +720,7 @@ class PublicApiController extends Controller
             })
             })
             ->whereIn('type', $scope)
             ->whereIn('type', $scope)
             ->whereIn('scope', $visibility)
             ->whereIn('scope', $visibility)
-            ->orderByDesc('id')
+            ->orderByDesc('created_at')
             ->cursorPaginate($remainingLimit)
             ->cursorPaginate($remainingLimit)
             ->withQueryString();
             ->withQueryString();