The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

post: remove body field, it was not used

Signed-off-by: Christine Dodrill <me@christine.website>

-3
-3
src/post/mod.rs
··· 10 10 pub struct Post { 11 11 pub front_matter: frontmatter::Data, 12 12 pub link: String, 13 - pub body: String, 14 13 pub body_html: String, 15 14 pub date: DateTime<FixedOffset>, 16 15 pub mentions: Vec<mi::WebMention>, ··· 83 82 let link = format!("{}/{}", dir, fname.file_stem().unwrap().to_str().unwrap()); 84 83 let body_html = crate::app::markdown::render(&body) 85 84 .wrap_err_with(|| format!("can't parse markdown for {:?}", fname))?; 86 - let body = body.to_string(); 87 85 let date: DateTime<FixedOffset> = 88 86 DateTime::<Utc>::from_utc(NaiveDateTime::new(date, NaiveTime::from_hms(0, 0, 0)), Utc) 89 87 .with_timezone(&Utc) ··· 101 99 Ok(Post { 102 100 front_matter, 103 101 link, 104 - body, 105 102 body_html, 106 103 date, 107 104 mentions,