mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-02 04:37:35 +03:00
parent
fd1c32f555
commit
cb659cc8a3
2 changed files with 2 additions and 2 deletions
|
@ -605,7 +605,7 @@ pub async fn rss(req: Request<Body>) -> Result<Response<Body>, String> {
|
|||
.into_iter()
|
||||
.map(|post| Item {
|
||||
title: Some(post.title.to_string()),
|
||||
link: Some(utils::get_post_url(&post)),
|
||||
link: Some(format_url(&utils::get_post_url(&post))),
|
||||
author: Some(post.author.name),
|
||||
content: Some(rewrite_urls(&post.body)),
|
||||
pub_date: Some(DateTime::from_timestamp(post.created_ts as i64, 0).unwrap_or_default().to_rfc2822()),
|
||||
|
|
|
@ -164,7 +164,7 @@ pub async fn rss(req: Request<Body>) -> Result<Response<Body>, String> {
|
|||
.into_iter()
|
||||
.map(|post| Item {
|
||||
title: Some(post.title.to_string()),
|
||||
link: Some(utils::get_post_url(&post)),
|
||||
link: Some(format_url(&utils::get_post_url(&post))),
|
||||
author: Some(post.author.name),
|
||||
pub_date: Some(DateTime::from_timestamp(post.created_ts as i64, 0).unwrap_or_default().to_rfc2822()),
|
||||
content: Some(rewrite_urls(&post.body)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue