diff options
Diffstat (limited to 'mod/import.php')
-rw-r--r-- | mod/import.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mod/import.php b/mod/import.php index 02e71233a..184159585 100644 --- a/mod/import.php +++ b/mod/import.php @@ -109,6 +109,9 @@ function import_account(&$a, $account_id) { return; } + if(UNO) + return; + if(array_key_exists('compatibility',$data) && array_key_exists('database',$data['compatibility'])) { $v1 = substr($data['compatibility']['database'],-4); $v2 = substr(DB_UPDATE_VERSION,-4); @@ -116,6 +119,12 @@ function import_account(&$a, $account_id) { $t = sprintf( t('Warning: Database versions differ by %1$d updates.'), $v2 - $v1 ); notice($t); } + if(array_key_exists('server_role',$data['compatibility']) + && $data['compatibility']['server_role'] != Zotlabs\Project\System::get_server_role()) { + notice( t('Server platform is not compatible. Operation not permitted.') . EOL); + return; + } + } // import channel @@ -123,7 +132,7 @@ function import_account(&$a, $account_id) { if(array_key_exists('channel',$data)) { if($completed < 1) { - $channel = import_channel($data['channel'], $account_id); + $channel = import_channel($data['channel'], $account_id, $seize); } else { |