aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-09 13:24:32 +0000
committerMario <mario@mariovavti.com>2021-01-09 13:24:32 +0000
commit61e782389c20a0d22749985177370149af4ae119 (patch)
treed9313c300db9c39147d7a78be5774b38bbe8b245
parent7cfb230a5e90986b62a5c1df86ce48c894c0578c (diff)
downloadvolse-hubzilla-61e782389c20a0d22749985177370149af4ae119.tar.gz
volse-hubzilla-61e782389c20a0d22749985177370149af4ae119.tar.bz2
volse-hubzilla-61e782389c20a0d22749985177370149af4ae119.zip
more streamline keyid
-rw-r--r--Zotlabs/Module/Zfinger.php8
-rw-r--r--include/import.php2
2 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Module/Zfinger.php b/Zotlabs/Module/Zfinger.php
index 533f0a5db..ce7117ad8 100644
--- a/Zotlabs/Module/Zfinger.php
+++ b/Zotlabs/Module/Zfinger.php
@@ -7,7 +7,7 @@ use Zotlabs\Lib\Libzot;
class Zfinger extends \Zotlabs\Web\Controller {
function init() {
-
+
require_once('include/zot.php');
require_once('include/crypto.php');
@@ -26,7 +26,7 @@ class Zfinger extends \Zotlabs\Web\Controller {
if($chan) {
$headers['Digest'] = HTTPSig::generate_digest_header($ret);
- $h = HTTPSig::create_sig($headers,$chan['channel_prvkey'],'acct:' . channel_reddress($chan));
+ $h = HTTPSig::create_sig($headers,$chan['channel_prvkey'], channel_url($chan));
HTTPSig::set_headers($h);
}
else {
@@ -37,7 +37,7 @@ class Zfinger extends \Zotlabs\Web\Controller {
echo $ret;
killme();
-
+
}
-
+
}
diff --git a/include/import.php b/include/import.php
index 853690094..b512e1f11 100644
--- a/include/import.php
+++ b/include/import.php
@@ -1463,7 +1463,7 @@ function sync_files($channel, $files) {
$headers = [];
$headers['Accept'] = 'application/x-zot+json' ;
$headers['Sigtoken'] = random_string();
- $headers = HTTPSig::create_sig($headers,$channel['channel_prvkey'],'acct:' . channel_reddress($channel),true,'sha512');
+ $headers = HTTPSig::create_sig($headers, $channel['channel_prvkey'], channel_url($channel), true, 'sha512');
$x = z_post_url($fetch_url,$parr,$redirects,[ 'filep' => $fp, 'headers' => $headers]);
fclose($fp);