From a6d8668a5f31def1a74fcdfe15a184acfe3d696d Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 27 Mar 2014 20:28:48 -0700 Subject: try and sort out the item delete mess --- include/zot.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index 394563563..b23c18bdb 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1597,10 +1597,10 @@ function delete_imported_item($sender,$item,$uid) { // We can't reverse the order because drop_item refuses to run if the item already has the deleted flag set and we need to // set that flag prior to calling tag_deliver. - // One possibility would be to set the deleted flag, call both tag_deliver and the notifier to notify downstream channels - // and then clean up after ourselves with a cron job after a day or two to do the delete_item_lowlevel(). + // Use phased deletion to set the deleted flag, call both tag_deliver and the notifier to notify downstream channels + // and then clean up after ourselves with a cron job after several days to do the delete_item_lowlevel() (DROPITEM_PHASE2). - drop_item($r[0]['uid'],false); + drop_item($r[0]['id'],false, DROPITEM_PHASE1); tag_deliver($uid,$r[0]['id']); -- cgit v1.2.3