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/mood.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/mood.php') diff --git a/mod/mood.php b/mod/mood.php index 7b6a0c392..83b8bfb57 100755 --- a/mod/mood.php +++ b/mod/mood.php @@ -84,7 +84,9 @@ function mood_init(&$a) { $arr['verb'] = $activity; $arr['body'] = $action; - $item_id = item_store($arr); + $post = item_store($arr); + $item_id = $post['item_id']; + if($item_id) { // q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d LIMIT 1", // dbesc($a->get_baseurl() . '/display/' . $poster['nickname'] . '/' . $item_id), -- cgit v1.2.3