1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Merge pull request #4208 from jochie/nodeinfo-tweak

These two values are expected to be integers
This commit is contained in:
daniel 2023-03-04 14:57:50 -07:00 committed by GitHub
commit 87a7a2767c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,10 +56,10 @@ class Nodeinfo {
'version' => config('pixelfed.version'),
],
'usage' => [
'localPosts' => $statuses,
'localPosts' => (int) $statuses,
'localComments' => 0,
'users' => [
'total' => $users,
'total' => (int) $users,
'activeHalfyear' => (int) $activeHalfYear,
'activeMonth' => (int) $activeMonth,
],