From 34d35230c323ff81997dc29d53465df2b63b694e Mon Sep 17 00:00:00 2001 From: postscriptum Date: Thu, 3 Jul 2025 18:09:31 +0300 Subject: [PATCH] handle own posts only --- src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.rs b/src/main.rs index c74d6d3..520c9ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,6 +70,14 @@ fn sync(snac: &Snac, nex: &Nex, is_debug: bool) -> Result { if !post.is_note() { todo!() } + // handle own posts only @TODO + if !post.id.contains(&format!("/{}/p/", &user.name)) { + if is_debug { + println!("\t\tskip third-party post `{}`.", post.id); + } + r.ignored += 1; + continue; + } // skip non authorized content if let Some(content) = post.source_content { if is_debug {