summaryrefslogtreecommitdiffstats
path: root/server/src/api/community.rs
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-01-31 20:02:20 -0500
committerDessalines <tyhou13@gmx.com>2020-01-31 20:02:20 -0500
commit8036474ddad2f20c27a2fb023395306d6b9e577d (patch)
tree28f3546c9086931f33d9ee6d910c9aa43a5a1f77 /server/src/api/community.rs
parent5188bddd4ddb1d4f4bc4add24db210789054c2a5 (diff)
Starting to work on user message scope.
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,
})
}
}