don't ignore foreign posts
This commit is contained in:
parent
36b1d688db
commit
8d097e2f33
|
@ -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 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
|
||||||
// send away to redis
|
if crate::redis_store::save_post(&mut redis_man, &host, post).await {
|
||||||
if crate::redis_store::save_post(&mut redis_man, &host, post).await {
|
new_posts += 1;
|
||||||
new_posts += 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// introduce instances from authors
|
// introduce instances from authors
|
||||||
|
|
Loading…
Reference in New Issue
Block a user