From 3e5414cf35f3781297490e058c6d366bca45748e Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 10 Sep 2013 19:06:06 -0700 Subject: 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 !! --- mod/subthread.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/subthread.php') diff --git a/mod/subthread.php b/mod/subthread.php index 66dc86eb2..11b7236fb 100755 --- a/mod/subthread.php +++ b/mod/subthread.php @@ -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", -- cgit v1.2.3