]> Untitled Git - lemmy.git/commitdiff
Fix compilation
authorFelix Ableitner <me@nutomic.com>
Wed, 14 Jun 2023 09:34:29 +0000 (11:34 +0200)
committerFelix Ableitner <me@nutomic.com>
Wed, 14 Jun 2023 09:34:29 +0000 (11:34 +0200)
crates/routes/src/feeds.rs

index cebf510ce541aaa5143f5992bd94606ca00d52f8..3b4c2cd77bbcf9879d5d5caa6d0134a2b0607be7 100644 (file)
@@ -415,10 +415,7 @@ fn create_reply_and_mention_items(
   let mut mention_items: Vec<Item> = mentions
     .iter()
     .map(|m| {
   let mut mention_items: Vec<Item> = mentions
     .iter()
     .map(|m| {
-      let mention_url = format!(
-        "/comment/{}",
-        protocol_and_hostname, m.post.id, m.comment.id
-      );
+      let mention_url = format!("{}/comment/{}", protocol_and_hostname, m.comment.id);
       build_item(
         &m.creator.name,
         &m.comment.published,
       build_item(
         &m.creator.name,
         &m.comment.published,