Compare commits
2 Commits
7fce1dab55
...
01fd48e9ca
Author | SHA1 | Date |
---|---|---|
Leonora Tindall | 01fd48e9ca | |
Leonora Tindall | 07b8dc30c7 |
|
@ -293,7 +293,7 @@ checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "corobel"
|
name = "corobel"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atom_syndication",
|
"atom_syndication",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "corobel"
|
name = "corobel"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
|
@ -84,10 +84,10 @@ pub fn channel_for_posts_page(
|
||||||
let mut body_text = String::new();
|
let mut body_text = String::new();
|
||||||
|
|
||||||
if item.share_tree.len() == 1 {
|
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 {
|
} else if item.share_tree.len() > 1 {
|
||||||
body_text.push_str(&format!(
|
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()
|
item.share_tree.len()
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ pub fn channel_for_posts_page(
|
||||||
body_text.push_str(&format!(" {},", cw));
|
body_text.push_str(&format!(" {},", cw));
|
||||||
}
|
}
|
||||||
body_text.pop(); // Remove trailing comma
|
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() {
|
if !item.tags.is_empty() {
|
||||||
|
|
Loading…
Reference in New Issue