Red API: /api/red/item/new ; which is like /api/statuses/update except it uses Red semantics and returns success/failure indication.

This commit is contained in:
friendica
2014-03-04 19:57:54 -08:00
parent 4da73d7d84
commit 267283748f
3 changed files with 51 additions and 3 deletions

View File

@@ -1548,7 +1548,7 @@ function item_store($arr,$allow_exec = false) {
$allow_exec = $d['allow_exec'];
$ret = array('result' => false, 'item_id' => 0);
$ret = array('success' => false, 'item_id' => 0);
if(! $arr['uid']) {
logger('item_store: no uid');
@@ -1933,7 +1933,7 @@ function item_store_update($arr,$allow_exec = false) {
$ret = array('result' => false, 'item_id' => 0);
$ret = array('success' => false, 'item_id' => 0);
if(! intval($arr['uid'])) {
logger('item_store_update: no uid');
$ret['message'] = 'no uid.';