From 22839e48d013abdc46b609cd50b45b3bce6626f9 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 26 Jan 2017 15:16:41 -0800 Subject: better handling of html special chars in wiki and wikipage names --- include/items.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include') 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; } -- cgit v1.2.3