aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-07-27 15:05:29 -0700
committerzotlabs <mike@macgirvin.com>2018-07-27 15:05:29 -0700
commita0f28708ab125e953157299d13d8ebbea8b77396 (patch)
treea20b8c9e071d4451767838bf1c10b42aefcbc744
parente25d205a7f1428588edd431002a2e10833c8f76e (diff)
downloadvolse-hubzilla-a0f28708ab125e953157299d13d8ebbea8b77396.tar.gz
volse-hubzilla-a0f28708ab125e953157299d13d8ebbea8b77396.tar.bz2
volse-hubzilla-a0f28708ab125e953157299d13d8ebbea8b77396.zip
don't sync system apps
-rw-r--r--Zotlabs/Lib/Apps.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index 841fffd39..ddaf8c44d 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -527,7 +527,7 @@ class Apps {
intval($uid)
);
if($r) {
- if(! $r[0]['app_system']) {
+ if(($app['uid']) && (! $r[0]['app_system'])) {
if($app['categories'] && (! $app['term'])) {
$r[0]['term'] = q("select * from term where otype = %d and oid = %d",
intval(TERM_OBJ_APP),
@@ -587,8 +587,9 @@ class Apps {
intval($uid)
);
}
-
- build_sync_packet($uid,array('app' => $x));
+ if(! intval($x[0]['app_system'])) {
+ build_sync_packet($uid,array('app' => $x));
+ }
}
else {
self::app_undestroy($uid,$app);