From 0348bc01770302fcf3e4170d759ccc86838aed80 Mon Sep 17 00:00:00 2001 From: VC Date: Wed, 8 Nov 2023 09:27:33 +0100 Subject: [PATCH] remove reblogs --- src/lib.rs | 1 + src/mastodon.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 69f9d31..900dd4a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,6 +31,7 @@ pub async fn run(config: &Config) { let Ok(tweet_content) = strip_everything(&toot.content, &toot.tags) else { continue; }; + println!("Toot: {}", toot.id); println!("{:?}", tweet_content); } } diff --git a/src/mastodon.rs b/src/mastodon.rs index a191dde..a4029bc 100644 --- a/src/mastodon.rs +++ b/src/mastodon.rs @@ -43,6 +43,7 @@ pub async fn get_mastodon_timeline_since( .is_some_and(|r| r == t.account.id) }) .filter(|t| t.visibility == StatusVisibility::Public) + .filter(|t| t.reblog.is_none()) .collect(); timeline.reverse();