handle own posts only

This commit is contained in:
postscriptum 2025-07-03 18:09:31 +03:00
parent 7db9b1c2a2
commit 34d35230c3

View file

@ -70,6 +70,14 @@ fn sync(snac: &Snac, nex: &Nex, is_debug: bool) -> Result<Response> {
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 {