]> Untitled Git - lemmy.git/blobdiff - server/src/apub/puller.rs
Merge branch 'federation' into dev_1
[lemmy.git] / server / src / apub / puller.rs
index 8b5c4cc46cdbc9317b3453e75be12154d2640665..4b899a319ad77f8c752980692f6a599b9b47f000 100644 (file)
@@ -3,7 +3,6 @@ extern crate reqwest;
 use self::reqwest::Error;
 use crate::api::community::{GetCommunityResponse, ListCommunitiesResponse};
 use crate::api::post::GetPosts;
-use crate::api::UserOperation;
 use crate::db::community_view::CommunityView;
 use crate::naive_now;
 use crate::settings::Settings;
@@ -44,7 +43,6 @@ pub fn get_remote_community(identifier: String) -> Result<GetCommunityResponse,
   // TODO: i dont think simple numeric ids are going to work, we probably need something like uuids
   // TODO: why are the Group properties not typed?
   Ok(GetCommunityResponse {
-    op: UserOperation::GetCommunity.to_string(),
     moderators: vec![],
     admins: vec![],
     community: CommunityView {
@@ -69,6 +67,7 @@ pub fn get_remote_community(identifier: String) -> Result<GetCommunityResponse,
       user_id: None,
       subscribed: None,
     },
+    online: 0,
   })
 }