diff --git a/crates/ipx/src/catalogue.rs b/crates/ipx/src/catalogue.rs index 1bfe71c..c175a53 100644 --- a/crates/ipx/src/catalogue.rs +++ b/crates/ipx/src/catalogue.rs @@ -136,6 +136,10 @@ pub(crate) async fn rm(ctx: &Ctx, feed: &str) -> Result<()> { return Ok(()); }; ctx.store_cfg(cfg).await?; + // Left subscribed, All Subscriptions listed its items with no feed to name them (#478). + for (user, _) in ctx.db.subscribers_of(feed).await? { + ctx.db.unsubscribe(user, feed).await?; + } // State and files stay: re-adding the feed should not re-download its back catalogue. println!("removed {feed}; downloads and history kept"); retire_group(ctx, feed, Some(&parent)).await?;