$_REQUEST['api_source'] = true;
+ if (!isset($_REQUEST["source"]) OR ($_REQUEST["source"] == ""))
+ $_REQUEST["source"] = "api";
+
// call out normal post function
require_once('mod/item.php');
$_REQUEST['type'] = 'wall';
$_REQUEST['api_source'] = true;
+ if (!isset($_REQUEST["source"]) OR ($_REQUEST["source"] == ""))
+ $_REQUEST["source"] = "api";
+
require_once('mod/item.php');
item_post($a);
}
function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0) {
require_once('library/simplepie/simplepie.inc');
+ require_once('include/contact_selectors.php');
if(! strlen($xml)) {
logger('consume_feed: empty input');
}
}
+ if (!isset($datarray["app"]) OR ($datarray["app"] == ""))
+ $datarray["app"] = network_to_name($contact['network']);
+
$notify = true;
if($contact['network'] === NETWORK_FEED) {
$datarray['private'] = 0;