From b56bbffbd421f7f047970d19ad86f8f10c217e9b Mon Sep 17 00:00:00 2001 From: Vika Date: Sat, 8 Jul 2023 21:05:55 +0300 Subject: fixup! database: add add_to_feed and remove_from_feed --- kittybox-rs/src/micropub/util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kittybox-rs') 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)] -- cgit 1.4.1