delivery invoked twice in mod_tagger, once in post_activity_item() and another at the main module level
This commit is contained in:
parent
5947467339
commit
41fa2d6c69
@ -130,18 +130,14 @@ class Tagger extends \Zotlabs\Web\Controller {
|
|||||||
store_item_tag($item['uid'],$item['id'],TERM_OBJ_POST,TERM_COMMUNITYTAG,$term,$tagid);
|
store_item_tag($item['uid'],$item['id'],TERM_OBJ_POST,TERM_COMMUNITYTAG,$term,$tagid);
|
||||||
$ret = post_activity_item($arr);
|
$ret = post_activity_item($arr);
|
||||||
|
|
||||||
$r = $ret['item'];
|
if($ret['success']) {
|
||||||
if($r) {
|
build_sync_packet(local_channel(),
|
||||||
build_sync_packet(local_channel(),[
|
[
|
||||||
'item' => [
|
'item' => [ encode_item($ret['activity'],true) ]
|
||||||
encode_item($,true)
|
|
||||||
]
|
]
|
||||||
]);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($ret['success'])
|
|
||||||
\Zotlabs\Daemon\Master::Summon(array('Notifier','tag',$ret['activity']['id']));
|
|
||||||
|
|
||||||
killme();
|
killme();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -449,11 +449,7 @@ function post_activity_item($arr) {
|
|||||||
call_hooks('post_local_end', $arr);
|
call_hooks('post_local_end', $arr);
|
||||||
Zotlabs\Daemon\Master::Summon(array('Notifier','activity',$post_id));
|
Zotlabs\Daemon\Master::Summon(array('Notifier','activity',$post_id));
|
||||||
$ret['success'] = true;
|
$ret['success'] = true;
|
||||||
$r = q("select * from item where id = %d limit 1",
|
$ret['activity'] = $post['item'];
|
||||||
intval($post_id)
|
|
||||||
);
|
|
||||||
if($r)
|
|
||||||
$ret['activity'] = $r[0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ret;
|
return $ret;
|
||||||
|
Reference in New Issue
Block a user