diff options
author | Vika <vika@fireburn.ru> | 2023-07-08 21:05:55 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-07-08 21:05:55 +0300 |
commit | b56bbffbd421f7f047970d19ad86f8f10c217e9b (patch) | |
tree | fff2ec898cd46f1421066181789c0e212fecff80 /kittybox-rs/src/micropub | |
parent | 85d4a67ddf8010da947f594aa043c17d70feb3a7 (diff) | |
download | kittybox-b56bbffbd421f7f047970d19ad86f8f10c217e9b.tar.zst |
fixup! database: add add_to_feed and remove_from_feed
Diffstat (limited to 'kittybox-rs/src/micropub')
-rw-r--r-- | kittybox-rs/src/micropub/util.rs | 4 |
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)] |