aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Item.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-10-09 22:43:01 +0200
committerMario Vavti <mario@mariovavti.com>2024-10-09 22:43:01 +0200
commitc2ce1d988136c848c1b0cbad5ffdddacca82901d (patch)
treeaabfe29409ad7e2d53bfaa8ea9f962ebe21e2e80 /Zotlabs/Module/Item.php
parent8cee16be1b774af1f2ec85d7778776e1d8b03e50 (diff)
downloadvolse-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.php5
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]);
}
}