aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Item.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-11-08 22:24:33 +0100
committerMario Vavti <mario@mariovavti.com>2024-11-08 22:24:33 +0100
commitebad9d56c9e9396847a66c07124e863cc2940b3c (patch)
tree427bf605076aaa25d3f3751d91fe97a4c5e6a462 /Zotlabs/Module/Item.php
parent0481901b593f861366f9a766e0f020cce7a31be7 (diff)
downloadvolse-hubzilla-ebad9d56c9e9396847a66c07124e863cc2940b3c.tar.gz
volse-hubzilla-ebad9d56c9e9396847a66c07124e863cc2940b3c.tar.bz2
volse-hubzilla-ebad9d56c9e9396847a66c07124e863cc2940b3c.zip
port to containers item_store() continued
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r--Zotlabs/Module/Item.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index cb9925c01..83b7bea1e 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -1271,6 +1271,7 @@ class Item extends Controller {
$this->add_listeners($datarray);
}
+ /* sync this is done in item_store_update()
if (!$parent) {
$r = q("select * from item where id = %d",
intval($post_id)
@@ -1281,9 +1282,14 @@ class Item extends Controller {
Libsync::build_sync_packet($profile_uid, ['item' => [encode_item($sync_item[0], true)]]);
}
}
- if (!$nopush)
- Master::Summon(['Notifier', 'edit_post', $post_id]);
+ */
+ if (!$nopush) {
+ Master::Summon(['Notifier', 'edit_post', $post_id]);
+ if (intval($x['approval_id'])) {
+ Master::Summon(['Notifier', 'edit_post', $x['approval_id']]);
+ }
+ }
if ($api_source)
return ($x);
@@ -1387,6 +1393,7 @@ class Item extends Controller {
killme();
}
+ /* sync this is done in item_store_update()
if ($parent || $datarray['item_private'] == 1) {
$r = q("select * from item where id = %d",
intval($post_id)
@@ -1397,6 +1404,7 @@ class Item extends Controller {
Libsync::build_sync_packet($profile_uid, ['item' => [encode_item($sync_item[0], true)]]);
}
}
+ */
$datarray['id'] = $post_id;
$datarray['llink'] = z_root() . '/display/' . $datarray['uuid'];