aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Like.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/Like.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/Like.php')
-rw-r--r--Zotlabs/Module/Like.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php
index d493742e7..1308beef7 100644
--- a/Zotlabs/Module/Like.php
+++ b/Zotlabs/Module/Like.php
@@ -559,6 +559,7 @@ class Like extends Controller {
$post = item_store($arr);
$post_id = $post['item_id'];
+ $approval_id = $post['approval_id'] ?? 0;
// save the conversation from expiration
@@ -609,7 +610,11 @@ class Like extends Controller {
}
- Master::Summon(array('Notifier', 'like', $post_id));
+ Master::Summon(['Notifier', 'like', $post_id]);
+ if ($approval_id) {
+ Master::Summon(['Notifier', 'like', $approval_id]);
+ }
+
if ($interactive) {
notice(t('Action completed.') . EOL);