mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-04-01 05:35:27 +00:00
handle own posts only
This commit is contained in:
parent
7db9b1c2a2
commit
34d35230c3
1 changed files with 8 additions and 0 deletions
|
|
@ -70,6 +70,14 @@ fn sync(snac: &Snac, nex: &Nex, is_debug: bool) -> Result<Response> {
|
||||||
if !post.is_note() {
|
if !post.is_note() {
|
||||||
todo!()
|
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
|
// skip non authorized content
|
||||||
if let Some(content) = post.source_content {
|
if let Some(content) = post.source_content {
|
||||||
if is_debug {
|
if is_debug {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue