aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-01-25 11:47:51 -0800
committerzotlabs <mike@macgirvin.com>2017-01-25 11:47:51 -0800
commit45a9eca792b349984ca11ab9a65e87e65625a718 (patch)
tree0de41dbc744cc79e4b61808b7d8cb1cedce59929 /include
parent7804ae6a7889baab8af87d518fb5a61b30cb20ff (diff)
parentc916906716528648d8559608216ca353507c23df (diff)
downloadvolse-hubzilla-45a9eca792b349984ca11ab9a65e87e65625a718.tar.gz
volse-hubzilla-45a9eca792b349984ca11ab9a65e87e65625a718.tar.bz2
volse-hubzilla-45a9eca792b349984ca11ab9a65e87e65625a718.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 4813cfb64..5986038bc 100755
--- a/include/items.php
+++ b/include/items.php
@@ -383,15 +383,18 @@ function post_activity_item($arr,$allow_code = false,$deliver = true) {
}
$post = item_store($arr,$allow_code,$deliver);
- if($post['success'])
+
+ if($post['success']) {
$post_id = $post['item_id'];
+ $ret['item_id'] = $post_id;
+ }
if($post_id && $deliver) {
$arr['id'] = $post_id;
call_hooks('post_local_end', $arr);
Zotlabs\Daemon\Master::Summon(array('Notifier','activity',$post_id));
$ret['success'] = true;
- $ret['item_id'] = $post_id;
+ //$ret['item_id'] = $post_id;
$ret['activity'] = $post['item'];
}