aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-25 17:30:33 -0700
committerzotlabs <mike@macgirvin.com>2017-09-25 17:30:33 -0700
commit66334374af2a19fb76383028975724b9eda03cf2 (patch)
treeabe6337063d88787e5fed651706f0e19d219e6c1 /include
parent741af8c1644a16f1ec44064090013953232bdce9 (diff)
downloadvolse-hubzilla-66334374af2a19fb76383028975724b9eda03cf2.tar.gz
volse-hubzilla-66334374af2a19fb76383028975724b9eda03cf2.tar.bz2
volse-hubzilla-66334374af2a19fb76383028975724b9eda03cf2.zip
zot_site_info - always sign the site block with the site private key
Diffstat (limited to 'include')
-rw-r--r--include/zot.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/zot.php b/include/zot.php
index 1a9692ae9..a9ec95baa 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -4183,7 +4183,7 @@ function zotinfo($arr) {
if($x)
$ret['locations'] = $x;
- $ret['site'] = zot_site_info($e);
+ $ret['site'] = zot_site_info();
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'));
- $sig_method = get_config('system','signature_algorithm','sha256');
+ $signing_key = get_config('system','prvkey');
+ $sig_method = get_config('system','signature_algorithm','sha256');
$ret = [];
$ret['site'] = [];