From 934144089d79cb391963b0a5a844c9273768d1af Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 6 Jan 2024 06:18:21 +1100 Subject: [PATCH] bad signature in Home controller --- Code/Module/Home.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/Module/Home.php b/Code/Module/Home.php index d81bf8e5a..069d8d7e2 100644 --- a/Code/Module/Home.php +++ b/Code/Module/Home.php @@ -31,7 +31,8 @@ class Home extends Controller $headers = []; $headers['Content-Type'] = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'; - $x['signature'] = (new JcsEddsa2022)->sign($x, ['channel_address' => z_root(), 'channel_prvkey' => get_config('system', 'prvkey')]); + $channel = App::$sys_channel; + $x['proof'] = (new JcsEddsa2022)->sign($x, $channel); $ret = json_encode($x, JSON_UNESCAPED_SLASHES); logger('data: ' . jindent($ret), LOGGER_DATA); $headers['Date'] = datetime_convert('UTC', 'UTC', 'now', 'D, d M Y H:i:s \\G\\M\\T');