]> Untitled Git - lemmy.git/commitdiff
use camelcase for json keys
authorFelix Ableitner <me@nutomic.com>
Thu, 21 Nov 2019 14:51:57 +0000 (15:51 +0100)
committerFelix Ableitner <me@nutomic.com>
Thu, 21 Nov 2019 14:51:57 +0000 (15:51 +0100)
server/src/nodeinfo.rs

index 7799d5e0bb3da017b001fed932a8f16faae4ad03..bbdb65d903b0fff3528a79631e1fe34164c7eb8d 100644 (file)
@@ -36,9 +36,9 @@ pub fn node_info() -> HttpResponse<Body> {
       "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()