Merge branch 'nodeinfo' of https://github.com/Nutomic/lemmy into Nutomic-nodeinfo

This commit is contained in:
Dessalines 2019-11-21 11:22:46 -08:00
commit 59eca60239

View file

@ -36,9 +36,9 @@ pub fn node_info() -> HttpResponse<Body> {
"users": { "users": {
"total": site_view.number_of_users "total": site_view.number_of_users
}, },
"local_posts": site_view.number_of_posts, "localPosts": site_view.number_of_posts,
"local_comments": site_view.number_of_comments, "localComments": site_view.number_of_comments,
"open_registrations": true, "openRegistrations": true,
} }
}); });
return HttpResponse::Ok() return HttpResponse::Ok()