aboutsummaryrefslogtreecommitdiffstats
path: root/include/api_zot.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/api_zot.php')
-rw-r--r--include/api_zot.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/api_zot.php b/include/api_zot.php
index 56cec005d..a2753269d 100644
--- a/include/api_zot.php
+++ b/include/api_zot.php
@@ -546,15 +546,13 @@
return false;
}
-
- logger('api_red_item_store: REQUEST ' . print_r($_REQUEST,true));
+ logger('api_red_item_store: REQUEST ' . print_r($_POST,true));
logger('api_red_item_store: FILES ' . print_r($_FILES,true));
-
// set this so that the item_post() function is quiet and doesn't redirect or emit json
- $_REQUEST['api_source'] = true;
- $_REQUEST['profile_uid'] = api_user();
+ $_POST['api_source'] = true;
+ $_POST['profile_uid'] = api_user();
if(x($_FILES,'media')) {
$_FILES['userfile'] = $_FILES['media'];
@@ -562,11 +560,12 @@
$mod = new Zotlabs\Module\Wall_attach();
$media = $mod->post();
if($media)
- $_REQUEST['body'] = $media . "\n" . $_REQUEST['body'];
+ $_POST['body'] = $media . "\n" . $_POST['body'];
}
$mod = new Zotlabs\Module\Item();
$x = $mod->post();
+
json_return_and_die($x);
}