$ret = diaspora_participation($importer,$xmlbase->participation);
}
elseif($xmlbase->poll_participation) {
- $tempfile = tempnam(get_temppath(), "diaspora-poll_participation");
- file_put_contents($tempfile, json_encode($data));
- $ret = diaspora_participation($importer,$xmlbase->participation);
+ //$tempfile = tempnam(get_temppath(), "diaspora-poll_participation");
+ //file_put_contents($tempfile, json_encode($data));
+ $ret = diaspora_participation($importer,$xmlbase->poll_participation);
}
else {
$tempfile = tempnam(get_temppath(), "diaspora-unknown");
return self::import_request($importer, $fields);
case "reshare":
- return self::import_reshare($importer, $fields);
+ return true;
+ //return self::import_reshare($importer, $fields);
case "retraction":
return self::import_retraction($importer, $fields);
}
private function import_conversation($importer, $data) {
+ print_r($data);
+ die();
/*
$guid = notags(unxmlify($xml->guid));
$subject = notags(unxmlify($xml->subject));
if ($parent_type !== "Post")
return false;
- // "positive" = "false" doesn't seem to be supported by Diaspora
+ // "positive" = "false" would be a Dislike - wich isn't currently supported by Diaspora
if ($positive === "false") {
- logger("Received a like with positive set to 'false' - this shouldn't exist at all");
return false;
}