zot_site_info - always sign the site block with the site private key

This commit is contained in:
zotlabs 2017-09-25 17:30:33 -07:00
parent 741af8c164
commit 66334374af

View File

@ -4183,7 +4183,7 @@ function zotinfo($arr) {
if($x) if($x)
$ret['locations'] = $x; $ret['locations'] = $x;
$ret['site'] = zot_site_info($e); $ret['site'] = zot_site_info();
check_zotinfo($e,$x,$ret); check_zotinfo($e,$x,$ret);
@ -4195,10 +4195,10 @@ function zotinfo($arr) {
} }
function zot_site_info($channel = null) { function zot_site_info() {
$signing_key = (($channel) ? $channel['channel_prvkey'] : get_config('system','prvkey')); $signing_key = get_config('system','prvkey');
$sig_method = get_config('system','signature_algorithm','sha256'); $sig_method = get_config('system','signature_algorithm','sha256');
$ret = []; $ret = [];
$ret['site'] = []; $ret['site'] = [];