don't discard foreign posts

This commit is contained in:
Astro 2022-11-04 15:58:03 +01:00
parent 8d097e2f33
commit 36adb5f324
1 changed files with 1 additions and 6 deletions

View File

@ -17,12 +17,7 @@ pub async fn save_post(man: &mut redis::aio::ConnectionManager, host: &str, post
}
log::info!("New post ({}): {}", post.tags.len(), post.uri);
if let Some(author_host) = post.account.host() {
if author_host == host && post.uri_host().map(|s| s == host).unwrap_or(false) {
// only process authentic posts
save_post_tags(man, post).await;
}
}
save_post_tags(man, post).await;
// post was new
true