provide detailed error to remote site for the myriad of things that can go wrong inside item_store(), !! this changes the return of item_store !!
This commit is contained in:
@@ -142,7 +142,8 @@ EOT;
|
||||
$arr['unseen'] = 1;
|
||||
$arr['last-child'] = 0;
|
||||
|
||||
$post_id = item_store($arr);
|
||||
$post = item_store($arr);
|
||||
$post_id = $post['item_id'];
|
||||
|
||||
if(! $item['visible']) {
|
||||
$r = q("UPDATE `item` SET `visible` = 1 WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||
|
||||
Reference in New Issue
Block a user