diff options
author | zotlabs <mike@macgirvin.com> | 2017-07-18 21:16:18 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-07-18 21:16:18 -0700 |
commit | 6103c301848105a3bca3de81e9982276b2c38d76 (patch) | |
tree | 9b068dd2a9d16b7759a593dc66e71414c33b64f8 /include/feedutils.php | |
parent | b52a968c7461c9873d20d40887f470ab255f16f2 (diff) | |
download | volse-hubzilla-6103c301848105a3bca3de81e9982276b2c38d76.tar.gz volse-hubzilla-6103c301848105a3bca3de81e9982276b2c38d76.tar.bz2 volse-hubzilla-6103c301848105a3bca3de81e9982276b2c38d76.zip |
provide optional salmon signatures for AP entities
Diffstat (limited to 'include/feedutils.php')
-rw-r--r-- | include/feedutils.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/feedutils.php b/include/feedutils.php index daab1a741..5d537553f 100644 --- a/include/feedutils.php +++ b/include/feedutils.php @@ -1973,6 +1973,14 @@ function asencode_person($p) { if(array_key_exists('channel_id',$p)) { $ret['inbox'] = z_root() . '/inbox/' . $p['channel_address']; $ret['outbox'] = z_root() . '/outbox/' . $p['channel_address']; + $ret['me:magic_keys'] = [ + [ + 'value' => salmon_key($p['channel_pubkey']), + 'key_id' => base64url_encode(hash('sha256',salmon_key($p['channel_pubkey'])),true) + ] + ]; + + } else { $collections = get_xconfig($p['xchan_hash'],'activitystreams','collections',[]); |