]> Untitled Git - lemmy.git/commitdiff
Nodeinfo devs think halfyear is one word.
authorDessalines <tyhou13@gmx.com>
Fri, 29 Jan 2021 19:24:10 +0000 (14:24 -0500)
committerDessalines <tyhou13@gmx.com>
Fri, 29 Jan 2021 19:24:10 +0000 (14:24 -0500)
src/routes/nodeinfo.rs

index a498f55c01ab23b6fdaca20cc48c58d70c1aaac5..e7eb9486f80eb153eb3c3d0b8a24e30bb8945221 100644 (file)
@@ -48,7 +48,7 @@ async fn node_info(context: web::Data<LemmyContext>) -> Result<HttpResponse, Err
     usage: NodeInfoUsage {
       users: NodeInfoUsers {
         total: site_view.counts.users,
-        active_half_year: site_view.counts.users_active_half_year,
+        active_halfyear: site_view.counts.users_active_half_year,
         active_month: site_view.counts.users_active_month,
       },
       local_posts: site_view.counts.posts,
@@ -99,6 +99,6 @@ struct NodeInfoUsage {
 #[serde(rename_all = "camelCase")]
 struct NodeInfoUsers {
   pub total: i64,
-  pub active_half_year: i64,
+  pub active_halfyear: i64,
   pub active_month: i64,
 }