aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-11-08 20:18:20 +0100
committerMario Vavti <mario@mariovavti.com>2024-11-08 20:18:20 +0100
commit0481901b593f861366f9a766e0f020cce7a31be7 (patch)
tree9bf66881b0c0564fb6881831d1eaa06df6657e09 /Zotlabs/Lib/Libzot.php
parent4b4cac63fd4597b5c3090377196c8ad970900b21 (diff)
downloadvolse-hubzilla-0481901b593f861366f9a766e0f020cce7a31be7.tar.gz
volse-hubzilla-0481901b593f861366f9a766e0f020cce7a31be7.tar.bz2
volse-hubzilla-0481901b593f861366f9a766e0f020cce7a31be7.zip
refactor drop_item[s]() for containers
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index a9b24974d..7eabc074f 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -2423,21 +2423,20 @@ class Libzot {
);
}
} else {
- if ($stored['id'] !== $stored['parent']) {
- q(
- "update item set commented = '%s', changed = '%s' where id = %d",
- dbesc(datetime_convert()),
- dbesc(datetime_convert()),
- intval($stored['parent'])
- );
- }
- }
+ if ($stored['id'] !== $stored['parent']) {
+ q("update item set commented = '%s', changed = '%s' where id = %d",
+ dbesc(datetime_convert()),
+ dbesc(datetime_convert()),
+ intval($stored['parent'])
+ );
+ }
+ }
// 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($post_id, false, DROPITEM_PHASE1);
+ drop_item($post_id, DROPITEM_PHASE1, uid: $uid);
tag_deliver($uid, $post_id);
}