Browse Source

Better support for direct shares

main
Leonora Tindall 1 year ago
parent
commit
0f7af7c13a
Signed by: nora GPG Key ID: 7A8B52EC67E09AAF
  1. 1
      README.md
  2. 4
      src/syndication.rs

1
README.md

@ -16,6 +16,7 @@ ports to use for development and deployment.
- [ ] Handle redirects
- [x] RSS feeds for projects
- [x] Index page explaining what's going on
- [x] Better support for transparent shares
- [ ] More robust parsing (defaults for all!)
- [ ] RSS feeds for tags
- [x] Atom Extension pagination support

4
src/syndication.rs

@ -72,7 +72,9 @@ pub fn channel_for_posts_page(
let mut body_text = String::new();
if item.share_tree.len() == 1 {
if let Some(shared_post_id) = item.transparent_share_of_post_id {
body_text.push_str(&format!("(share of post {} without any commentary)\n\n---\n\n", shared_post_id));
} else if item.share_tree.len() == 1 {
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!(

Loading…
Cancel
Save