From 364adb4387818711c04de26c463591d5e9067708 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 23 Sep 2022 01:35:42 -0600 Subject: [PATCH] Update ApiV1Controller, fix mute/block entities --- app/Http/Controllers/Api/ApiV1Controller.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index e6f70bb95..eda28a1ca 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -895,7 +895,8 @@ class ApiV1Controller extends Controller }) ->filter(function($account) { return $account && isset($account['id']); - }); + }) + ->values(); return $this->json($blocked); } @@ -1757,7 +1758,8 @@ class ApiV1Controller extends Controller }) ->filter(function($account) { return $account && isset($account['id']); - }); + }) + ->values(); return $this->json($mutes); }