mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-18 04:21:27 +00:00
Merge pull request #5260 from pixelfed/staging
Update ApiV1Controller, fix v1/instance stats, force cast to int
This commit is contained in:
commit
7c70ccba31
1 changed files with 3 additions and 3 deletions
|
@ -1663,9 +1663,9 @@ class ApiV1Controller extends Controller
|
|||
|
||||
$stats = Cache::remember('api:v1:instance-data:stats', 43200, function () {
|
||||
return [
|
||||
'user_count' => User::count(),
|
||||
'status_count' => StatusService::totalLocalStatuses(),
|
||||
'domain_count' => Instance::count(),
|
||||
'user_count' => (int) User::count(),
|
||||
'status_count' => (int) StatusService::totalLocalStatuses(),
|
||||
'domain_count' => (int) Instance::count(),
|
||||
];
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue