summary refs log tree commit diff stats
path: root/pkgs/by-name/ba/back/src/web/mod.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-27 22:44:47 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-27 22:48:44 +0100
commit6788225f0f7be8f35dbcc0fcd498698c49f94326 (patch)
tree9630d55eb0efe9f97127c6b6ff007fc0dfd43035 /pkgs/by-name/ba/back/src/web/mod.rs
parentfeat(back): add rss feed (diff)
downloadnixos-server-6788225f0f7be8f35dbcc0fcd498698c49f94326.zip
fix(back): add correct links to rss feed
Co-authored-by: Silas Schöffel <sils@sils.li>
Diffstat (limited to 'pkgs/by-name/ba/back/src/web/mod.rs')
-rw-r--r--pkgs/by-name/ba/back/src/web/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/by-name/ba/back/src/web/mod.rs b/pkgs/by-name/ba/back/src/web/mod.rs
index c7ba9d9..968c827 100644
--- a/pkgs/by-name/ba/back/src/web/mod.rs
+++ b/pkgs/by-name/ba/back/src/web/mod.rs
@@ -119,14 +119,15 @@ pub fn feed(config: &State<BackConfig>) -> error::Result<RawHtml<String>> {
                 .author(issue.author.to_string())
                 .description(issue.message.to_string())
                 .pub_date(issue.timestamp.to_string())
+                .link(format!("{}/issue/{}", &config.root.to_string(), issue.id))
                 .build()
         })
         .collect();
 
     let channel = ChannelBuilder::default()
         .title("Issues")
-        .link("http://example.com")
-        .description("An RSS feed.")
+        .link(config.root.to_string())
+        .description(format!("The rss feed for issues on {}.", config.root))
         .items(items)
         .build();
     Ok(RawHtml(channel.to_string()))