Test code for the DFRN import
This commit is contained in:
parent
bcc9588732
commit
afed5f3afc
2 changed files with 385 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue