From 22990515a70d9628dcb694ef7d6f37e2abda808d Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 10 Apr 2020 14:45:48 +0200 Subject: [PATCH] more todos --- server/src/apub/community.rs | 6 +++++- server/src/apub/mod.rs | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/server/src/apub/community.rs b/server/src/apub/community.rs index 59c9329b..07634742 100644 --- a/server/src/apub/community.rs +++ b/server/src/apub/community.rs @@ -71,6 +71,8 @@ impl Community { oprops.set_updated(convert_datetime(u))?; } if let Some(d) = self.description.to_owned() { + // TODO: this should be html, also add source field with raw markdown + // -> same for post.content and others oprops.set_summary_xsd_string(d)?; } @@ -99,7 +101,9 @@ impl CommunityForm { Ok(CommunityForm { name: oprops.get_name_xsd_string().unwrap().to_string(), title: aprops.get_preferred_username().unwrap().to_string(), - description: oprops.get_summary_xsd_string().map(|s| s.to_string()), + // TODO: should be parsed as html and tags like