diff options
author | friendica <info@friendica.com> | 2014-03-27 20:28:48 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-27 20:28:48 -0700 |
commit | a6d8668a5f31def1a74fcdfe15a184acfe3d696d (patch) | |
tree | d58f65fb2cf1bfc8347478757f9c3dedeb5c6cab /include/zot.php | |
parent | 8c3efd20f4a56517d714bc533549251f41308d7e (diff) | |
download | volse-hubzilla-a6d8668a5f31def1a74fcdfe15a184acfe3d696d.tar.gz volse-hubzilla-a6d8668a5f31def1a74fcdfe15a184acfe3d696d.tar.bz2 volse-hubzilla-a6d8668a5f31def1a74fcdfe15a184acfe3d696d.zip |
try and sort out the item delete mess
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 6 |
1 files changed, 3 insertions, 3 deletions
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']); |