about summary refs log tree commit diff
path: root/kittybox-rs/src/micropub
diff options
context:
space:
mode:
Diffstat (limited to 'kittybox-rs/src/micropub')
-rw-r--r--kittybox-rs/src/micropub/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/kittybox-rs/src/micropub/mod.rs b/kittybox-rs/src/micropub/mod.rs
index 5c297f9..da9c6a5 100644
--- a/kittybox-rs/src/micropub/mod.rs
+++ b/kittybox-rs/src/micropub/mod.rs
@@ -294,8 +294,7 @@ pub(crate) async fn _post<D: 'static + Storage>(
 
     for chan in &mut channels {
         if db.post_exists(chan).await? {
-            db.update_post(chan, json!({"add": {"children": [uid]}}))
-                .await?;
+            db.add_to_feed(chan, &uid).await?;
         } else if default_channels.iter().any(|i| chan == i) {
             util::create_feed(&db, &uid, chan, user).await?;
         } else {