1
0
Fork 0

Test code for the DFRN import

This commit is contained in:
Michael Vogel 2016-01-27 11:30:12 +01:00
commit afed5f3afc
2 changed files with 385 additions and 0 deletions

View file

@ -1766,6 +1766,12 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0)
return;
}
// Test - remove before flight
//if ($pass < 2) {
// $tempfile = tempnam(get_temppath(), "dfrn-consume-");
// file_put_contents($tempfile, $xml);
//}
require_once('library/simplepie/simplepie.inc');
require_once('include/contact_selectors.php');
@ -2471,6 +2477,9 @@ function local_delivery($importer,$data) {
logger(__function__, LOGGER_TRACE);
//$tempfile = tempnam(get_temppath(), "dfrn-local-");
//file_put_contents($tempfile, $data);
if($importer['readonly']) {
// We aren't receiving stuff from this person. But we will quietly ignore them
// rather than a blatant "go away" message.