don't discard foreign posts
This commit is contained in:
parent
8d097e2f33
commit
36adb5f324
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue