aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-11-29 11:26:29 +0100
committerMario Vavti <mario@mariovavti.com>2021-11-29 11:26:29 +0100
commit5de38b3632a471a7e886bba93542ceb8c8dc7e82 (patch)
tree5c7532ce830b91ceb3e619cc5214be41d3e94abe /Zotlabs
parent6ced3426cfa29a95214c280c0d3e67798b38411c (diff)
downloadvolse-hubzilla-5de38b3632a471a7e886bba93542ceb8c8dc7e82.tar.gz
volse-hubzilla-5de38b3632a471a7e886bba93542ceb8c8dc7e82.tar.bz2
volse-hubzilla-5de38b3632a471a7e886bba93542ceb8c8dc7e82.zip
mod channel: lookup zotinfo based on hash instead of address
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Channel.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php
index 6261a2f06..4ebd2ee29 100644
--- a/Zotlabs/Module/Channel.php
+++ b/Zotlabs/Module/Channel.php
@@ -66,8 +66,7 @@ class Channel extends Controller {
$sigdata = HTTPSig::verify(file_get_contents('php://input'), EMPTY_STR, 'zot6');
if ($sigdata && $sigdata['signer'] && $sigdata['header_valid']) {
- $data = json_encode(Libzot::zotinfo(['address' => $channel['channel_address'], 'target_url' => $sigdata['signer']]));
-
+ $data = json_encode(Libzot::zotinfo(['guid_hash' => $channel['channel_hash'], 'target_url' => $sigdata['signer']]));
$s = q("select site_crypto, hubloc_sitekey from site left join hubloc on hubloc_url = site_url where hubloc_id_url = '%s' and hubloc_network = 'zot6' limit 1",
dbesc($sigdata['signer'])
);