diff options
author | Mario <mario@mariovavti.com> | 2021-04-20 08:09:33 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-04-20 08:09:33 +0000 |
commit | eaf9003ca27c52c571f940e49fcfba6e1c8fe629 (patch) | |
tree | 4a883fa1ca6a459045d9747f55b62ab85d952652 /Zotlabs/Module/Import.php | |
parent | 751d6fe8a4963036364f7e80d110b43bc551c893 (diff) | |
download | volse-hubzilla-eaf9003ca27c52c571f940e49fcfba6e1c8fe629.tar.gz volse-hubzilla-eaf9003ca27c52c571f940e49fcfba6e1c8fe629.tar.bz2 volse-hubzilla-eaf9003ca27c52c571f940e49fcfba6e1c8fe629.zip |
when importing a channel, make sure we import the xchan before the hubloc - otherwise we can not verify the hubloc hash
Diffstat (limited to 'Zotlabs/Module/Import.php')
-rw-r--r-- | Zotlabs/Module/Import.php | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Zotlabs/Module/Import.php b/Zotlabs/Module/Import.php index 8ef24b232..4622a588d 100644 --- a/Zotlabs/Module/Import.php +++ b/Zotlabs/Module/Import.php @@ -209,12 +209,6 @@ class Import extends \Zotlabs\Web\Controller { logger('import step 3'); - if(is_array($data['hubloc'])) { - import_hublocs($channel,$data['hubloc'],$seize,$moving); - } - - logger('import step 4'); - // create new hubloc for the new channel at this site if(array_key_exists('channel',$data)) { @@ -277,7 +271,7 @@ class Import extends \Zotlabs\Web\Controller { } - logger('import step 5'); + logger('import step 4'); // import xchans and contact photos @@ -335,7 +329,7 @@ class Import extends \Zotlabs\Web\Controller { } - logger('import step 6'); + logger('import step 5'); // import xchans $xchans = $data['xchan']; @@ -404,7 +398,14 @@ class Import extends \Zotlabs\Web\Controller { } } - logger('import step 7'); + logger('import step 6'); + } + + logger('import step 7'); + + // this must happen after xchans got imported! + if(is_array($data['hubloc'])) { + import_hublocs($channel,$data['hubloc'],$seize,$moving); } $friends = 0; |