Browse Source

Fix large CW indicators

main
Leonora Tindall 1 year ago
parent
commit
07b8dc30c7
Signed by: nora GPG Key ID: 7A8B52EC67E09AAF
  1. 6
      src/syndication.rs

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