diff options
author | friendica <info@friendica.com> | 2014-03-18 16:50:46 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-18 16:50:46 -0700 |
commit | 8c177fbc4b20c297afbd7035dbb5e59d94fb4020 (patch) | |
tree | 534ced0ada038c99bd466082494546feca0cffd9 /include/zot.php | |
parent | c8fb979ed86403bc38baaf92c90f299434b25fdf (diff) | |
download | volse-hubzilla-8c177fbc4b20c297afbd7035dbb5e59d94fb4020.tar.gz volse-hubzilla-8c177fbc4b20c297afbd7035dbb5e59d94fb4020.tar.bz2 volse-hubzilla-8c177fbc4b20c297afbd7035dbb5e59d94fb4020.zip |
cleanup
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/include/zot.php b/include/zot.php index 934348d2d..d4d77157a 100644 --- a/include/zot.php +++ b/include/zot.php @@ -872,21 +872,28 @@ function import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED) { } // get rid of any hubs we have for this channel which weren't reported. + // This was needed at one time to resolve complicated cross-site inconsistencies, but can cause sync conflict. + // currently disabled. + +// if($xisting) { +// foreach($xisting as $x) { +// if(! array_key_exists('updated',$x)) { +// logger('import_xchan: removing unreferenced hub location ' . $x['hubloc_url']); +// $r = q("delete from hubloc where hubloc_id = %d limit 1", +// intval($x['hubloc_id']) +// ); +// $what .= 'removed_hub'; +// $changed = true; +// } +// } +// } - if($xisting) { - foreach($xisting as $x) { - if(! array_key_exists('updated',$x)) { - logger('import_xchan: removing unreferenced hub location ' . $x['hubloc_url']); - $r = q("delete from hubloc where hubloc_id = %d limit 1", - intval($x['hubloc_id']) - ); - $what .= 'removed_hub'; - $changed = true; - } - } - } } + + + + // Are we a directory server of some kind? if($dirmode != DIRECTORY_MODE_NORMAL) { |