about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/micropub/post.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/micropub/post.rs b/src/micropub/post.rs
index 6906dc0..def518a 100644
--- a/src/micropub/post.rs
+++ b/src/micropub/post.rs
@@ -298,12 +298,12 @@ async fn create_feed(
     // Note to Future Vika: DO NOT CONVERT THIS TO A MATCH BLOCK
     // It will get treated as a binding instead of a const
     // See `rustc --explain E0530` for more info
-    let (name, slug) = if path == DEFAULT_CHANNEL_PATH {
-        (DEFAULT_CHANNEL_NAME, "main")
+    let name = if path == DEFAULT_CHANNEL_PATH {
+        DEFAULT_CHANNEL_NAME
     } else if path == CONTACTS_CHANNEL_PATH {
-        (CONTACTS_CHANNEL_NAME, "vcards")
+        CONTACTS_CHANNEL_NAME
     } else if path == FOOD_CHANNEL_PATH {
-        (FOOD_CHANNEL_NAME, "food")
+        FOOD_CHANNEL_NAME
     } else {
         panic!("Tried to create an unknown default feed!")
     };
@@ -313,7 +313,7 @@ async fn create_feed(
             "type": ["h-feed"],
             "properties": {
                 "name": [name],
-                "mp-slug": [slug],
+                "uid": [channel]
             },
             "children": [uid]
         }),