From c2ce1d988136c848c1b0cbad5ffdddacca82901d Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 9 Oct 2024 22:43:01 +0200 Subject: containers: send add in mod like, send remove on delete --- Zotlabs/Module/Item.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Module/Item.php') diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 0b50b9b55..1dd3017aa 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -1312,6 +1312,7 @@ class Item extends Controller { } $post_id = $post['item_id']; + $approval_id = $post['approval_id'] ?? 0; $datarray = $post['item']; @@ -1408,8 +1409,8 @@ class Item extends Controller { if (!$nopush) { Master::Summon(['Notifier', $notify_type, $post_id]); - if (!empty($post['approval_id'])) { - Master::Summon(['Notifier', $notify_type, $post['approval_id']]); + if ($approval_id) { + Master::Summon(['Notifier', $notify_type, $approval_id]); } } -- cgit v1.2.3