diff options
author | Mario Vavti <mario@mariovavti.com> | 2024-11-09 12:39:24 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2024-11-09 12:39:24 +0100 |
commit | b6dbbbc82fd66335f8be990bb74afbd46e63954b (patch) | |
tree | 33ff1e61824eff7713439078181a567b771a3033 | |
parent | 954d92c354aef93cac7079472c55b53ac4a07d2a (diff) | |
download | volse-hubzilla-b6dbbbc82fd66335f8be990bb74afbd46e63954b.tar.gz volse-hubzilla-b6dbbbc82fd66335f8be990bb74afbd46e63954b.tar.bz2 volse-hubzilla-b6dbbbc82fd66335f8be990bb74afbd46e63954b.zip |
fix regression propagating deletes
-rw-r--r-- | Zotlabs/Module/Item.php | 4 | ||||
-rw-r--r-- | include/items.php | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 83b7bea1e..039468ad7 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -1475,7 +1475,7 @@ class Item extends Controller { require_once('include/items.php'); - $i = q("select id, uid, item_origin, author_xchan, owner_xchan, source_xchan, item_type from item where id = %d limit 1", + $i = q("select * from item where id = %d limit 1", intval(argv(2)) ); @@ -1534,7 +1534,7 @@ class Item extends Controller { if ($complex) { tag_deliver($i[0]['uid'], $i[0]['id']); if (intval($i[0]['item_wall']) || $i[0]['mid'] !== $i[0]['parent_mid']) { - Master::Summon(['Notifier', 'drop', $dropped_item['id']]); + Master::Summon(['Notifier', 'drop', $i[0]['id']]); } } diff --git a/include/items.php b/include/items.php index 98cff99f9..dfa64fd27 100644 --- a/include/items.php +++ b/include/items.php @@ -3402,9 +3402,9 @@ function start_delivery_chain($channel, $item, $item_id, $parent, $group = false if ($post_id) { Master::Summon(['Notifier', 'tgroup', $post_id]); - if ($approval_id) { - Master::Summon(['Notifier', 'tgroup', $approval_id]); - } + if ($approval_id) { + Master::Summon(['Notifier', 'tgroup', $approval_id]); + } } q("update channel set channel_lastpost = '%s' where channel_id = %d", |