1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-22 15:55:14 +00:00

Update ApiV1Controller, fix v1/instance stats, force cast to int

This commit is contained in:
Daniel Supernault 2024-08-12 21:21:29 -06:00
parent 56a13d5d2f
commit dcd95d687c
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -1663,9 +1663,9 @@ class ApiV1Controller extends Controller
$stats = Cache::remember('api:v1:instance-data:stats', 43200, function () { $stats = Cache::remember('api:v1:instance-data:stats', 43200, function () {
return [ return [
'user_count' => User::count(), 'user_count' => (int) User::count(),
'status_count' => StatusService::totalLocalStatuses(), 'status_count' => (int) StatusService::totalLocalStatuses(),
'domain_count' => Instance::count(), 'domain_count' => (int) Instance::count(),
]; ];
}); });