another import fix and do not allow importing channels < version 4.7.4 for zot6 compatibility reasons

This commit is contained in:
Mario
2020-04-05 15:00:08 +00:00
parent ea237a97a1
commit cb2996a40c
2 changed files with 8 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
<?php
use Zotlabs\Lib\IConfig;
use Zotlabs\Lib\Libzot;
use Zotlabs\Web\HTTPSig;
@@ -31,7 +32,7 @@ function import_channel($channel, $account_id, $seize, $newname = '') {
// Ignore the hash provided and re-calculate
$channel['channel_hash'] = make_xchan_hash($channel['channel_guid'],$channel['channel_guid_sig']);
$channel['channel_hash'] = Libzot::make_xchan_hash($channel['channel_guid'],$channel['channel_pubkey']);
if($newname) {
$channel['channel_address'] = $newname;