about summary refs log tree commit diff
path: root/kittybox-rs/src/micropub/util.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2023-07-08 21:05:55 +0300
committerVika <vika@fireburn.ru>2023-07-08 21:05:55 +0300
commitb56bbffbd421f7f047970d19ad86f8f10c217e9b (patch)
treefff2ec898cd46f1421066181789c0e212fecff80 /kittybox-rs/src/micropub/util.rs
parent85d4a67ddf8010da947f594aa043c17d70feb3a7 (diff)
downloadkittybox-b56bbffbd421f7f047970d19ad86f8f10c217e9b.tar.zst
fixup! database: add add_to_feed and remove_from_feed
Diffstat (limited to 'kittybox-rs/src/micropub/util.rs')
-rw-r--r--kittybox-rs/src/micropub/util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/kittybox-rs/src/micropub/util.rs b/kittybox-rs/src/micropub/util.rs
index b884e8a..940d7c3 100644
--- a/kittybox-rs/src/micropub/util.rs
+++ b/kittybox-rs/src/micropub/util.rs
@@ -209,11 +209,11 @@ pub(crate) async fn create_feed(
                 "name": [name],
                 "uid": [channel]
             },
-            "children": [uid]
         }),
         user,
     );
-    storage.put_post(&feed, user.me.as_str()).await
+    storage.put_post(&feed, user.me.as_str()).await?;
+    storage.add_to_feed(channel, uid).await
 }
 
 #[cfg(test)]