Merge pull request #4208 from jochie/nodeinfo-tweak

These two values are expected to be integers
pull/4223/head
daniel 2023-03-04 14:57:50 -07:00 zatwierdzone przez GitHub
commit 87a7a2767c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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,
],