mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:15:14 +00:00
bad signature in Home controller
This commit is contained in:
parent
8e7d556400
commit
934144089d
1 changed files with 2 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue