Skip to content

Commit

Permalink
add description for rss item (just like https://news.ycombinator.com/… (
Browse files Browse the repository at this point in the history
#220)

fix #201
  • Loading branch information
freedit-dev authored Sep 21, 2024
1 parent 2991813 commit 69c7a69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/subreddit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,11 @@ pub async fn rss(req: Request<Body>) -> Result<Response<Body>, String> {
link: Some(utils::get_post_url(&post)),
author: Some(post.author.name),
content: Some(rewrite_urls(&post.body)),
description: Some(format!(
"<a href='{}{}'>Comments</a>",
config::get_setting("REDLIB_FULL_URL").unwrap_or_default(),
post.permalink
)),
..Default::default()
})
.collect::<Vec<_>>(),
Expand Down

0 comments on commit 69c7a69

Please sign in to comment.