Index: Cargo.lock ================================================================== --- Cargo.lock +++ Cargo.lock @@ -2153,11 +2153,11 @@ "quick-xml", ] [[package]] name = "rsstg" -version = "0.3.1" +version = "0.3.2" dependencies = [ "anyhow", "async-std", "atom_syndication", "chrono", Index: src/core.rs ================================================================== --- src/core.rs +++ src/core.rs @@ -178,10 +178,11 @@ } }; let count = Arc::strong_count(&id); if count == 2 { let source = conn.get_source(*id, owner).await?; + conn.set_scrape(*id).await?; let destination = match real { true => source.channel_id, false => source.owner, }; let mut this_fetch: Option> = None; @@ -241,11 +242,10 @@ }; posted += 1; }; posts.clear(); }; - conn.set_scrape(*id).await?; Ok(format!("Posted: {posted}")) } async fn autofetch(&mut self) -> Result { let mut delay = chrono::Duration::minutes(1);