From 39565fecfb4cf03a4fc148ad66d2b85e6fdcd49c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 21 Nov 2019 15:51:57 +0100 Subject: [PATCH] use camelcase for json keys --- server/src/nodeinfo.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/nodeinfo.rs b/server/src/nodeinfo.rs index 7799d5e0b..bbdb65d90 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()