don't ignore foreign posts

This commit is contained in:
Astro 2022-11-04 15:50:25 +01:00
parent 36b1d688db
commit 8d097e2f33
1 changed files with 4 additions and 5 deletions

View File

@ -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