diff options
author | Mario Vavti <mario@mariovavti.com> | 2021-10-06 09:36:14 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2021-10-06 09:36:14 +0200 |
commit | c33660a015ff4a2ed387caa4064fc8c4d8655419 (patch) | |
tree | 42a3bf620a54713ffc584efeb7d0006e94189b13 /Zotlabs/Lib/Libsync.php | |
parent | 16281e0e7fbc4ff691f6190ddc80632b411d2801 (diff) | |
download | volse-hubzilla-c33660a015ff4a2ed387caa4064fc8c4d8655419.tar.gz volse-hubzilla-c33660a015ff4a2ed387caa4064fc8c4d8655419.tar.bz2 volse-hubzilla-c33660a015ff4a2ed387caa4064fc8c4d8655419.zip |
move sync logic for apps to mod appman. this way we can re-use the functions without creating sync loops.
Diffstat (limited to 'Zotlabs/Lib/Libsync.php')
-rw-r--r-- | Zotlabs/Lib/Libsync.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Libsync.php b/Zotlabs/Lib/Libsync.php index d4ed57c3a..c4f1b20ea 100644 --- a/Zotlabs/Lib/Libsync.php +++ b/Zotlabs/Lib/Libsync.php @@ -141,7 +141,6 @@ class Libsync { logger('Packet: ' . print_r($info, true), LOGGER_DATA, LOG_DEBUG); $total = count($synchubs); - foreach ($synchubs as $hub) { $hash = random_string(); $n = Libzot::build_packet($channel, 'sync', $env_recips, json_encode($info), 'hz', $hub['hubloc_sitekey'], $hub['site_crypto']); @@ -186,7 +185,6 @@ class Libsync { require_once('include/import.php'); $result = []; - $keychange = ((array_key_exists('keychange', $arr)) ? true : false); foreach ($deliveries as $d) { @@ -242,14 +240,14 @@ class Libsync { if (array_key_exists('likes', $arr) && $arr['likes']) import_likes($channel, $arr['likes']); -/* + if (array_key_exists('app', $arr) && $arr['app']) sync_apps($channel, $arr['app']); if (array_key_exists('sysapp',$arr) && $arr['sysapp']) { sync_sysapps($channel, $arr['sysapp']); } -*/ + if (array_key_exists('addressbook', $arr) && $arr['addressbook']) sync_addressbook($channel, $arr['addressbook']); |