diff options
author | Mario Vavti <mario@mariovavti.com> | 2024-10-09 22:43:01 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2024-10-09 22:43:01 +0200 |
commit | c2ce1d988136c848c1b0cbad5ffdddacca82901d (patch) | |
tree | aabfe29409ad7e2d53bfaa8ea9f962ebe21e2e80 /Zotlabs/Module/Item.php | |
parent | 8cee16be1b774af1f2ec85d7778776e1d8b03e50 (diff) | |
download | volse-hubzilla-c2ce1d988136c848c1b0cbad5ffdddacca82901d.tar.gz volse-hubzilla-c2ce1d988136c848c1b0cbad5ffdddacca82901d.tar.bz2 volse-hubzilla-c2ce1d988136c848c1b0cbad5ffdddacca82901d.zip |
containers: send add in mod like, send remove on delete
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r-- | Zotlabs/Module/Item.php | 5 |
1 files changed, 3 insertions, 2 deletions
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]); } } |