Update ApiV1Controller, fix mute/block entities

This commit is contained in:
Daniel Supernault 2022-09-23 01:35:42 -06:00
parent 20d9f8b890
commit 364adb4387
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -895,7 +895,8 @@ class ApiV1Controller extends Controller
}) })
->filter(function($account) { ->filter(function($account) {
return $account && isset($account['id']); return $account && isset($account['id']);
}); })
->values();
return $this->json($blocked); return $this->json($blocked);
} }
@ -1757,7 +1758,8 @@ class ApiV1Controller extends Controller
}) })
->filter(function($account) { ->filter(function($account) {
return $account && isset($account['id']); return $account && isset($account['id']);
}); })
->values();
return $this->json($mutes); return $this->json($mutes);
} }