summaryrefslogtreecommitdiffstats
path: root/server/src/api/post.rs
diff options
context:
space:
mode:
authorFelix Ableitner <me@nutomic.com>2020-03-14 22:03:05 +0100
committerFelix Ableitner <me@nutomic.com>2020-03-14 22:03:05 +0100
commit8ebcc7ac021963ad3c5284bdf7fa3197c49223ed (patch)
treed94df574e0eb82087ad9b009ff946171c440dfbf /server/src/api/post.rs
parent5896a9d251f13e4387fe34e0f8cd21317494ec15 (diff)
Implemented basics for post federation, plus a bunch of other stuff
Diffstat (limited to 'server/src/api/post.rs')
-rw-r--r--server/src/api/post.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/api/post.rs b/server/src/api/post.rs
index e19d4ee9..1602626b 100644
--- a/server/src/api/post.rs
+++ b/server/src/api/post.rs
@@ -44,9 +44,9 @@ pub struct GetPosts {
auth: Option<String>,
}
-#[derive(Serialize, Deserialize)]
+#[derive(Serialize, Deserialize, Debug)]
pub struct GetPostsResponse {
- posts: Vec<PostView>,
+ pub posts: Vec<PostView>,
}
#[derive(Serialize, Deserialize)]
@@ -222,7 +222,6 @@ impl Perform<GetPostsResponse> for Oper<GetPosts> {
let data: &GetPosts = &self.data;
if Settings::get().federation_enabled {
- dbg!(&data);
// TODO: intercept here (but the type is wrong)
//get_remote_community_posts(get_posts.community_id.unwrap())
}