瀏覽代碼

Update PublicApiController, order accountStatuses by id

Daniel Supernault 5 年之前
父節點
當前提交
8efe14cc4b
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/Http/Controllers/PublicApiController.php

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

@@ -567,9 +567,8 @@ class PublicApiController extends Controller
           ->whereIn('type', $scope)
           ->where('id', $dir, $id)
           ->whereIn('visibility', $visibility)
-          ->latest()
           ->limit($limit)
-          ->orderByDesc('created_at')
+          ->orderByDesc('id')
           ->get();
 
         $resource = new Fractal\Resource\Collection($timeline, new StatusTransformer());