Skip to content

Commit dcd95d6

Browse files
committed
Update ApiV1Controller, fix v1/instance stats, force cast to int
1 parent 56a13d5 commit dcd95d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Http/Controllers/Api/ApiV1Controller.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1663,9 +1663,9 @@ public function instance(Request $request)
16631663

16641664
$stats = Cache::remember('api:v1:instance-data:stats', 43200, function () {
16651665
return [
1666-
'user_count' => User::count(),
1667-
'status_count' => StatusService::totalLocalStatuses(),
1668-
'domain_count' => Instance::count(),
1666+
'user_count' => (int) User::count(),
1667+
'status_count' => (int) StatusService::totalLocalStatuses(),
1668+
'domain_count' => (int) Instance::count(),
16691669
];
16701670
});
16711671

0 commit comments

Comments
 (0)