aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-02 20:12:40 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-02 20:12:40 -0700
commitc22da3da1c5d3c5418cb9f142883adb838db9f76 (patch)
tree61c8575d5959826918c9b4fcd42666048ce246fc /include/zot.php
parent69fc10d5adfa0640792376ad4f417bd7f28fc7f7 (diff)
downloadvolse-hubzilla-c22da3da1c5d3c5418cb9f142883adb838db9f76.tar.gz
volse-hubzilla-c22da3da1c5d3c5418cb9f142883adb838db9f76.tar.bz2
volse-hubzilla-c22da3da1c5d3c5418cb9f142883adb838db9f76.zip
start to modularise the clone import and sync functions
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index 8a8b74860..cb70f38a2 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -2841,6 +2841,8 @@ function build_sync_packet($uid = 0, $packet = null, $groups_changed = false) {
*/
function process_channel_sync_delivery($sender, $arr, $deliveries) {
+ require_once('include/import.php');
+
/** @FIXME this will sync red structures (channel, pconfig and abook). Eventually we need to make this application agnostic. */
$result = array();
@@ -2873,6 +2875,10 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
}
}
+ if(array_key_exists('obj',$arr) && $arr['obj'])
+ sync_objs($channel,$arr['obj']);
+
+
if(array_key_exists('channel',$arr) && is_array($arr['channel']) && count($arr['channel'])) {
if(array_key_exists('channel_page_flags',$arr['channel']) && intval($arr['channel']['channel_pageflags'])) {
$arr['channel']['channel_removed'] = (($arr['channel']['channel_pageflags'] & 0x8000) ? 1 : 0);