Better support for direct shares

This commit is contained in:
Leonora Tindall 2022-11-02 14:39:01 -05:00
parent c4c486dc8a
commit 0f7af7c13a
Signed by: nora
GPG Key ID: 7A8B52EC67E09AAF
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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!(