main: deliver more zeros in nodeinfo to not skew others' statistics

This commit is contained in:
Astro 2023-10-18 17:23:57 +02:00
parent 02680ffdac
commit a7cb1867d0

View file

@ -285,9 +285,9 @@ async fn nodeinfo(axum::extract::State(state): axum::extract::State<State>) -> R
"openRegistrations": false, "openRegistrations": false,
"usage": { "usage": {
"users": { "users": {
"total": followers_count, "total": 0,
"activeHalfyear": followers_count, "activeHalfyear": followers_count,
"activeMonth": followers_count, "activeMonth": 0,
}, },
"localPosts": follows_count, "localPosts": follows_count,
"localComments": 0 "localComments": 0