mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-24 02:11:03 +00:00
more todos
This commit is contained in:
parent
509005fa0c
commit
5e3902a3bc
2 changed files with 6 additions and 3 deletions
|
@ -71,6 +71,8 @@ impl Community {
|
||||||
oprops.set_updated(convert_datetime(u))?;
|
oprops.set_updated(convert_datetime(u))?;
|
||||||
}
|
}
|
||||||
if let Some(d) = self.description.to_owned() {
|
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)?;
|
oprops.set_summary_xsd_string(d)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +101,9 @@ impl CommunityForm {
|
||||||
Ok(CommunityForm {
|
Ok(CommunityForm {
|
||||||
name: oprops.get_name_xsd_string().unwrap().to_string(),
|
name: oprops.get_name_xsd_string().unwrap().to_string(),
|
||||||
title: aprops.get_preferred_username().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 <script> removed (or use markdown source)
|
||||||
|
// -> same for post.content etc
|
||||||
|
description: oprops.get_content_xsd_string().map(|s| s.to_string()),
|
||||||
category_id: 1,
|
category_id: 1,
|
||||||
creator_id: creator.id,
|
creator_id: creator.id,
|
||||||
removed: None,
|
removed: None,
|
||||||
|
|
|
@ -5,12 +5,11 @@ pub mod inbox;
|
||||||
pub mod post;
|
pub mod post;
|
||||||
pub mod user;
|
pub mod user;
|
||||||
use crate::Settings;
|
use crate::Settings;
|
||||||
use openssl::{pkey::PKey, rsa::Rsa};
|
|
||||||
|
|
||||||
use activitystreams::actor::{properties::ApActorProperties, Group, Person};
|
use activitystreams::actor::{properties::ApActorProperties, Group, Person};
|
||||||
use activitystreams::ext::Ext;
|
use activitystreams::ext::Ext;
|
||||||
use actix_web::body::Body;
|
use actix_web::body::Body;
|
||||||
use actix_web::HttpResponse;
|
use actix_web::HttpResponse;
|
||||||
|
use openssl::{pkey::PKey, rsa::Rsa};
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
type GroupExt = Ext<Group, ApActorProperties>;
|
type GroupExt = Ext<Group, ApActorProperties>;
|
||||||
|
|
Loading…
Reference in a new issue