aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-12-08 21:44:32 +0100
committerMario Vavti <mario@mariovavti.com>2023-12-08 21:44:32 +0100
commitf57d89245c23ca1ce67577ff3956d68b4e2c62e6 (patch)
treea29e73b2298ecdea26f7b9557e06bb70c5580977 /Zotlabs/Module
parent1e4e59bb5750a1b7f4a8458e0d8b6b2a34e5edeb (diff)
downloadvolse-hubzilla-f57d89245c23ca1ce67577ff3956d68b4e2c62e6.tar.gz
volse-hubzilla-f57d89245c23ca1ce67577ff3956d68b4e2c62e6.tar.bz2
volse-hubzilla-f57d89245c23ca1ce67577ff3956d68b4e2c62e6.zip
add the app terms before syncing - otherwise the terms will be reset at the other end
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Appman.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zotlabs/Module/Appman.php b/Zotlabs/Module/Appman.php
index 34f5f453d..5f72d771b 100644
--- a/Zotlabs/Module/Appman.php
+++ b/Zotlabs/Module/Appman.php
@@ -110,6 +110,11 @@ class Appman extends \Zotlabs\Web\Controller {
dbesc($papp['guid'])
);
+ $sync[0]['term'] = q("select * from term where otype = %d and oid = %d",
+ intval(TERM_OBJ_APP),
+ intval($sync[0]['id'])
+ );
+
if (intval($sync[0]['app_system'])) {
Libsync::build_sync_packet(local_channel(), ['sysapp' => $sync]);
}
@@ -126,6 +131,11 @@ class Appman extends \Zotlabs\Web\Controller {
dbesc($papp['guid'])
);
+ $sync[0]['term'] = q("select * from term where otype = %d and oid = %d",
+ intval(TERM_OBJ_APP),
+ intval($sync[0]['id'])
+ );
+
if (intval($sync[0]['app_system'])) {
Libsync::build_sync_packet(local_channel(), ['sysapp' => $sync]);
}