1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2025-02-04 02:51:35 +00:00

Add nodeinfo local_comments field

This commit is contained in:
Felix Ableitner 2025-01-15 10:37:00 +01:00
parent 7cec30c8fb
commit a427c418a4

View file

@ -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)]