diff options
author | Mario <mario@mariovavti.com> | 2020-11-04 13:36:52 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-04 13:36:52 +0000 |
commit | 207df132e69bd3e70f28addbd63bd3c638da9b08 (patch) | |
tree | 718f32d33d860e0001a6ec9b8124dcd41f8040fc /Zotlabs/Lib/Activity.php | |
parent | 40e0fe1d25d3722d5e63fa062f787c2f98e8b791 (diff) | |
download | volse-hubzilla-207df132e69bd3e70f28addbd63bd3c638da9b08.tar.gz volse-hubzilla-207df132e69bd3e70f28addbd63bd3c638da9b08.tar.bz2 volse-hubzilla-207df132e69bd3e70f28addbd63bd3c638da9b08.zip |
make sure we attach the public key
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 08e5ffaca..e7fa6352a 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1018,6 +1018,7 @@ class Activity { if(! $extended) { return $p['xchan_url']; } + $ret = []; $c = ((array_key_exists('channel_id',$p)) ? $p : channelx_by_hash($p['xchan_hash'])); @@ -1063,10 +1064,16 @@ class Activity { ] ]; + $ret['publicKey'] = [ + 'id' => $p['xchan_url'], + 'owner' => $p['xchan_url'], + 'publicKeyPem' => $p['xchan_pubkey'] + ]; + $arr = [ 'xchan' => $p, 'encoded' => $ret ]; call_hooks('encode_person', $arr); - $ret = $arr['encoded']; + $ret = $arr['encoded']; return $ret; } |