aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/items.php b/include/items.php
index 0c76fd4ee..0d9fb02a4 100755
--- a/include/items.php
+++ b/include/items.php
@@ -386,18 +386,18 @@ function post_activity_item($arr,$allow_code = false,$deliver = true) {
if($post['success']) {
$post_id = $post['item_id'];
+ $ret['success'] = true;
$ret['item_id'] = $post_id;
+ $ret['activity'] = $post['item'];
+ call_hooks('post_local_end', $ret['activity']);
}
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['activity'] = $post['item'];
}
+
+ $ret['success'] = true;
return $ret;
}