aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-04-05 15:00:08 +0000
committerMario <mario@mariovavti.com>2020-04-05 15:00:08 +0000
commitcb2996a40cf86d727bfda2df86bdcc8d643b46da (patch)
tree6c802ff7ce8badd61b798abcc059417d65a04fc9 /include
parentea237a97a16c35cc808d3f5a39139c94cc17cbaa (diff)
downloadvolse-hubzilla-cb2996a40cf86d727bfda2df86bdcc8d643b46da.tar.gz
volse-hubzilla-cb2996a40cf86d727bfda2df86bdcc8d643b46da.tar.bz2
volse-hubzilla-cb2996a40cf86d727bfda2df86bdcc8d643b46da.zip
another import fix and do not allow importing channels < version 4.7.4 for zot6 compatibility reasons
Diffstat (limited to 'include')
-rw-r--r--include/import.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/import.php b/include/import.php
index bfe71963f..910cb8be7 100644
--- a/include/import.php
+++ b/include/import.php
@@ -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;