summaryrefslogtreecommitdiffstats
path: root/server/src/api/community.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/api/community.rs')
-rw-r--r--server/src/api/community.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/api/community.rs b/server/src/api/community.rs
index c765aa9d..80cc2b65 100644
--- a/server/src/api/community.rs
+++ b/server/src/api/community.rs
@@ -11,9 +11,10 @@ pub struct GetCommunity {
#[derive(Serialize, Deserialize)]
pub struct GetCommunityResponse {
- community: CommunityView,
+ pub community: CommunityView,
moderators: Vec<CommunityModeratorView>,
admins: Vec<UserView>,
+ pub online: usize,
}
#[derive(Serialize, Deserialize)]
@@ -161,6 +162,7 @@ impl Perform<GetCommunityResponse> for Oper<GetCommunity> {
community: community_view,
moderators,
admins,
+ online: 0,
})
}
}
@@ -590,6 +592,7 @@ impl Perform<GetCommunityResponse> for Oper<TransferCommunity> {
community: community_view,
moderators,
admins,
+ online: 0,
})
}
}