Compare commits

...

2 Commits

  1. 2
      Cargo.lock
  2. 2
      Cargo.toml
  3. 6
      src/syndication.rs

2
Cargo.lock

@ -293,7 +293,7 @@ checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc"
[[package]]
name = "corobel"
version = "0.2.1"
version = "0.2.2"
dependencies = [
"atom_syndication",
"chrono",

2
Cargo.toml

@ -1,6 +1,6 @@
[package]
name = "corobel"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

6
src/syndication.rs

@ -84,10 +84,10 @@ pub fn channel_for_posts_page(
let mut body_text = String::new();
if item.share_tree.len() == 1 {
body_text.push_str("(in reply to another post)\n---\n")
body_text.push_str("(in reply to another post)\n\n---\n\n")
} else if item.share_tree.len() > 1 {
body_text.push_str(&format!(
"(in reply to {} other posts)\n---\n",
"(in reply to {} other posts)\n\n---\n\n",
item.share_tree.len()
));
}
@ -100,7 +100,7 @@ pub fn channel_for_posts_page(
body_text.push_str(&format!(" {},", cw));
}
body_text.pop(); // Remove trailing comma
body_text.push_str("\n---\n")
body_text.push_str("\n\n---\n\n")
};
if !item.tags.is_empty() {

Loading…
Cancel
Save