From f57d89245c23ca1ce67577ff3956d68b4e2c62e6 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 8 Dec 2023 21:44:32 +0100 Subject: add the app terms before syncing - otherwise the terms will be reset at the other end --- Zotlabs/Module/Appman.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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]); } -- cgit v1.2.3