add connection filter to non-zot posts
This commit is contained in:
parent
e3f605e242
commit
845024e1e7
@ -1009,6 +1009,11 @@ function diaspora_post($importer,$xml,$msg) {
|
|||||||
return 202;
|
return 202;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(! post_is_importable($datarray,$contact)) {
|
||||||
|
logger('diaspora_post: filtering this author.');
|
||||||
|
return 202;
|
||||||
|
}
|
||||||
|
|
||||||
$result = item_store($datarray);
|
$result = item_store($datarray);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -3762,6 +3762,9 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
|
|||||||
$author['owner_avatar'] = $contact['thumb'];
|
$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: author ' . print_r($author,true),LOGGER_DEBUG);
|
||||||
|
|
||||||
logger('consume_feed: ' . print_r($datarray,true),LOGGER_DATA);
|
logger('consume_feed: ' . print_r($datarray,true),LOGGER_DATA);
|
||||||
|
Reference in New Issue
Block a user