delivery invoked twice in mod_tagger, once in post_activity_item() and another at the main module level
This commit is contained in:
@@ -130,18 +130,14 @@ class Tagger extends \Zotlabs\Web\Controller {
|
||||
store_item_tag($item['uid'],$item['id'],TERM_OBJ_POST,TERM_COMMUNITYTAG,$term,$tagid);
|
||||
$ret = post_activity_item($arr);
|
||||
|
||||
$r = $ret['item'];
|
||||
if($r) {
|
||||
build_sync_packet(local_channel(),[
|
||||
'item' => [
|
||||
encode_item($,true)
|
||||
if($ret['success']) {
|
||||
build_sync_packet(local_channel(),
|
||||
[
|
||||
'item' => [ encode_item($ret['activity'],true) ]
|
||||
]
|
||||
]);
|
||||
);
|
||||
}
|
||||
|
||||
if($ret['success'])
|
||||
\Zotlabs\Daemon\Master::Summon(array('Notifier','tag',$ret['activity']['id']));
|
||||
|
||||
killme();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user