mirror of
https://github.com/Nutomic/ibis.git
synced 2025-02-04 05:41:35 +00:00
Add nodeinfo local_comments field
This commit is contained in:
parent
7cec30c8fb
commit
a427c418a4
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,7 @@ async fn node_info(data: Data<IbisData>) -> MyResult<Json<NodeInfo>> {
|
||||||
active_halfyear: stats.users_active_half_year,
|
active_halfyear: stats.users_active_half_year,
|
||||||
},
|
},
|
||||||
local_posts: stats.articles,
|
local_posts: stats.articles,
|
||||||
|
local_comments: 0,
|
||||||
},
|
},
|
||||||
open_registrations: data.config.options.registration_open,
|
open_registrations: data.config.options.registration_open,
|
||||||
services: Default::default(),
|
services: Default::default(),
|
||||||
|
@ -89,6 +90,7 @@ pub struct NodeInfoSoftware {
|
||||||
pub struct NodeInfoUsage {
|
pub struct NodeInfoUsage {
|
||||||
pub users: NodeInfoUsers,
|
pub users: NodeInfoUsers,
|
||||||
pub local_posts: i32,
|
pub local_posts: i32,
|
||||||
|
pub local_comments: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
|
|
Loading…
Reference in a new issue