aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Apps.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-04 09:24:13 +0000
committerMario <mario@mariovavti.com>2021-10-04 09:24:13 +0000
commit6da7fe7d27b30f691c07e5fb767afc904c3063c0 (patch)
tree56663123eb76209dbb95c4de7eece010cc68b509 /Zotlabs/Lib/Apps.php
parent538e54053126ed4adf200802fb9298ec3212b085 (diff)
downloadvolse-hubzilla-6da7fe7d27b30f691c07e5fb767afc904c3063c0.tar.gz
volse-hubzilla-6da7fe7d27b30f691c07e5fb767afc904c3063c0.tar.bz2
volse-hubzilla-6da7fe7d27b30f691c07e5fb767afc904c3063c0.zip
provide system app sync
Diffstat (limited to 'Zotlabs/Lib/Apps.php')
-rw-r--r--Zotlabs/Lib/Apps.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index 3c09adaa5..89be58311 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -635,13 +635,18 @@ class Apps {
intval($uid)
);
if($r) {
- if(($app['uid']) && (! $r[0]['app_system'])) {
+ if($app['uid']) {
if($app['categories'] && (! $app['term'])) {
$r[0]['term'] = q("select * from term where otype = %d and oid = %d",
intval(TERM_OBJ_APP),
intval($r[0]['id'])
);
- Libsync::build_sync_packet($uid,array('app' => $r[0]));
+ }
+ if (intval($r[0]['app_system'])) {
+ Libsync::build_sync_packet($uid, ['sysapp' => $r[0]]);
+ }
+ else {
+ Libsync::build_sync_packet($uid, ['app' => $r[0]]);
}
}
}