aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-10-04 20:32:19 +0200
committerMario Vavti <mario@mariovavti.com>2021-10-04 20:32:19 +0200
commit4b48ff28681da55e2b4448c5e3f84ab6fa562df5 (patch)
treeb2912201fec0f6aba0672e27203c0eb028e9591f /Zotlabs
parent3a38946f8a9e08fec5406fedac2577a890c8773d (diff)
downloadvolse-hubzilla-4b48ff28681da55e2b4448c5e3f84ab6fa562df5.tar.gz
volse-hubzilla-4b48ff28681da55e2b4448c5e3f84ab6fa562df5.tar.bz2
volse-hubzilla-4b48ff28681da55e2b4448c5e3f84ab6fa562df5.zip
also sync the undestroy action
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Apps.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index c3557e94e..7cba90c0e 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -742,13 +742,13 @@ class Apps {
dbesc($app['guid']),
intval($uid)
);
- if($x) {
- if($x[0]['app_system']) {
- q("update app set app_deleted = 0 where app_id = '%s' and app_channel = %d",
- dbesc($app['guid']),
- intval($uid)
- );
- }
+ if($x && intval($x[0]['app_deleted']) && $x[0]['app_system']) {
+ q("update app set app_deleted = 0 where app_id = '%s' and app_channel = %d",
+ dbesc($app['guid']),
+ intval($uid)
+ );
+ $x[0]['app_deleted'] = 0;
+ Libsync::build_sync_packet($uid, ['sysapp' => $x]);
}
}
}