From: Felix Ableitner Date: Thu, 21 Nov 2019 14:51:57 +0000 (+0100) Subject: use camelcase for json keys X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%22%7Burl%7D/README.ru.md?a=commitdiff_plain;h=39565fecfb4cf03a4fc148ad66d2b85e6fdcd49c;p=lemmy.git use camelcase for json keys --- diff --git a/server/src/nodeinfo.rs b/server/src/nodeinfo.rs index 7799d5e0..bbdb65d9 100644 --- a/server/src/nodeinfo.rs +++ b/server/src/nodeinfo.rs @@ -36,9 +36,9 @@ pub fn node_info() -> HttpResponse { "users": { "total": site_view.number_of_users }, - "local_posts": site_view.number_of_posts, - "local_comments": site_view.number_of_comments, - "open_registrations": true, + "localPosts": site_view.number_of_posts, + "localComments": site_view.number_of_comments, + "openRegistrations": true, } }); return HttpResponse::Ok()