only clone between similar platforms

This commit is contained in:
zotlabs 2018-07-22 22:28:46 -07:00
parent cf03855f65
commit 626a0ab788
2 changed files with 5 additions and 10 deletions

View file

@ -116,16 +116,10 @@ class Import extends \Zotlabs\Web\Controller {
return;
}
// This is only an info message but it is alarming to folks who then report failure with this as the cause, when in fact we ignore this completely.
// if(array_key_exists('compatibility',$data) && array_key_exists('database',$data['compatibility'])) {
// $v1 = substr($data['compatibility']['database'],-4);
// $v2 = substr(DB_UPDATE_VERSION,-4);
// if($v2 > $v1) {
// $t = sprintf( t('Warning: Database versions differ by %1$d updates.'), $v2 - $v1 );
// notice($t);
// }
//
// }
if((! array_path_exists('compatibility/codebase',$data)) || $data['compatibility']['codebase'] !== 'zap') {
notice('Data export format is not compatible with this software');
return;
}
if($moving)
$seize = 1;

View file

@ -758,6 +758,7 @@ function identity_basic_export($channel_id, $sections = null) {
$ret['compatibility'] = [
'project' => PLATFORM_NAME,
'codebase' => 'zap',
'version' => STD_VERSION,
'database' => DB_UPDATE_VERSION,
'server_role' => Zotlabs\Lib\System::get_server_role()