clone sync missing for some item delete operations

This commit is contained in:
zotlabs
2016-12-11 14:39:06 -08:00
parent 0a21ffbfec
commit 9e27559bdb
2 changed files with 36 additions and 28 deletions

View File

@@ -1108,6 +1108,14 @@ class Item extends \Zotlabs\Web\Controller {
else {
// complex deletion that needs to propagate and be performed in phases
drop_item($i[0]['id'],true,DROPITEM_PHASE1);
$r = q("select * from item where id = %d",
intval($i[0]['id'])
);
if($r) {
xchan_query($r);
$sync_item = fetch_post_tags($r);
build_sync_packet($i[0]['uid'],array('item' => array(encode_item($sync_item[0],true))));
}
tag_deliver($i[0]['uid'],$i[0]['id']);
}
}