diff --git a/hunter/src/worker.rs b/hunter/src/worker.rs index 94a55ef..ce6a653 100644 --- a/hunter/src/worker.rs +++ b/hunter/src/worker.rs @@ -51,12 +51,11 @@ pub fn fetch_and_process( } } + // check if it's an actual post, not a repost if let Some(author_host) = post.account.host() { - if author_host == host && post.url_host().map(|s| s == host).unwrap_or(false) { - // send away to redis - if crate::redis_store::save_post(&mut redis_man, &host, post).await { - new_posts += 1; - } + // send away to redis + if crate::redis_store::save_post(&mut redis_man, &host, post).await { + new_posts += 1; } // introduce instances from authors