add connection filter to non-zot posts

This commit is contained in:
redmatrix 2015-07-29 17:04:17 -07:00
parent e3f605e242
commit 845024e1e7
2 changed files with 8 additions and 0 deletions

View File

@ -1009,6 +1009,11 @@ function diaspora_post($importer,$xml,$msg) {
return 202;
}
if(! post_is_importable($datarray,$contact)) {
logger('diaspora_post: filtering this author.');
return 202;
}
$result = item_store($datarray);
return;

View File

@ -3762,6 +3762,9 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
$author['owner_avatar'] = $contact['thumb'];
}
if(! post_is_importable($datarray,$contact))
continue;
logger('consume_feed: author ' . print_r($author,true),LOGGER_DEBUG);
logger('consume_feed: ' . print_r($datarray,true),LOGGER_DATA);