Better support for direct shares
This commit is contained in:
parent
c4c486dc8a
commit
0f7af7c13a
|
@ -16,6 +16,7 @@ ports to use for development and deployment.
|
||||||
- [ ] Handle redirects
|
- [ ] Handle redirects
|
||||||
- [x] RSS feeds for projects
|
- [x] RSS feeds for projects
|
||||||
- [x] Index page explaining what's going on
|
- [x] Index page explaining what's going on
|
||||||
|
- [x] Better support for transparent shares
|
||||||
- [ ] More robust parsing (defaults for all!)
|
- [ ] More robust parsing (defaults for all!)
|
||||||
- [ ] RSS feeds for tags
|
- [ ] RSS feeds for tags
|
||||||
- [x] Atom Extension pagination support
|
- [x] Atom Extension pagination support
|
||||||
|
|
|
@ -72,7 +72,9 @@ 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 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")
|
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!(
|
||||||
|
|
Loading…
Reference in New Issue