From d06fac072c812e40b155cda9d4781adbf0a3e48e Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 24 Sep 2022 18:07:24 -0600 Subject: [PATCH] Update ApiV1Controller, fix mute/blocks orderBy --- app/Http/Controllers/Api/ApiV1Controller.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index eda28a1ca..42b5e6121 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -888,6 +888,7 @@ class ApiV1Controller extends Controller ->whereUserId($user->profile_id) ->whereFilterableType('App\Profile') ->whereFilterType('block') + ->orderByDesc('id') ->simplePaginate($limit) ->pluck('filterable_id') ->map(function($id) { @@ -1751,6 +1752,7 @@ class ApiV1Controller extends Controller $mutes = UserFilter::whereUserId($user->profile_id) ->whereFilterableType('App\Profile') ->whereFilterType('mute') + ->orderByDesc('id') ->simplePaginate($limit) ->pluck('filterable_id') ->map(function($id) {