aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-10-12 16:31:00 +0200
committerMario Vavti <mario@mariovavti.com>2024-10-12 16:31:00 +0200
commit12b33a23dec6d65b9c73c002ba7221f3306ef598 (patch)
treed8e6c4cf96a39926c645b9117e906c0289d973fa /include/items.php
parenta305c20e0843e3a0baa62d6ea21d2735e366ea52 (diff)
downloadvolse-hubzilla-12b33a23dec6d65b9c73c002ba7221f3306ef598.tar.gz
volse-hubzilla-12b33a23dec6d65b9c73c002ba7221f3306ef598.tar.bz2
volse-hubzilla-12b33a23dec6d65b9c73c002ba7221f3306ef598.zip
containers: port start_delivery_chain()
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index ed528f89d..bb14cfb73 100644
--- a/include/items.php
+++ b/include/items.php
@@ -3313,10 +3313,14 @@ function start_delivery_chain($channel, $item, $item_id, $parent, $group = false
$post = item_store($arr);
}
- $post_id = $post['item_id'];
+ $post_id = $post['item_id'] ?? 0;
+ $approval_id = $post['approval_id'] ?? 0;
if($post_id) {
Master::Summon([ 'Notifier','tgroup',$post_id ]);
+ if ($approval_id) {
+ Master::Summon(['Notifier', 'tgroup', $approval_id]);
+ }
}
return;
}