]> Untitled Git - lemmy.git/commitdiff
Update RSS url (#3053)
authorJetpackJackson <88674707+JetpackJackson@users.noreply.github.com>
Tue, 13 Jun 2023 20:17:02 +0000 (16:17 -0400)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2023 20:17:02 +0000 (16:17 -0400)
* Update RSS url

* Fixed next line

* making sure this thing uploads

* Update feeds.rs

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
crates/routes/src/feeds.rs

index 74821354ca5a8492e5eb9a3f5857b10caf725ece..cebf510ce541aaa5143f5992bd94606ca00d52f8 100644 (file)
@@ -401,10 +401,7 @@ fn create_reply_and_mention_items(
   let mut reply_items: Vec<Item> = replies
     .iter()
     .map(|r| {
-      let reply_url = format!(
-        "{}/post/{}/comment/{}",
-        protocol_and_hostname, r.post.id, r.comment.id
-      );
+      let reply_url = format!("{}/comment/{}", protocol_and_hostname, r.comment.id);
       build_item(
         &r.creator.name,
         &r.comment.published,
@@ -419,7 +416,7 @@ fn create_reply_and_mention_items(
     .iter()
     .map(|m| {
       let mention_url = format!(
-        "{}/post/{}/comment/{}",
+        "/comment/{}",
         protocol_and_hostname, m.post.id, m.comment.id
       );
       build_item(