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/%7BcommunityRss%7D?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()