diff options
author | Mario <mario@mariovavti.com> | 2022-02-03 11:57:47 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-03 11:57:47 +0000 |
commit | 99dcdee67ab3521bd3e5e58ba4a85182b7a44890 (patch) | |
tree | b5d5016838963c5d46d34b8c15c6fd6e56bad522 /Zotlabs/Lib/Libzot.php | |
parent | 99928f1aeae088d1848e1fda870dcf07d91b9683 (diff) | |
download | volse-hubzilla-99dcdee67ab3521bd3e5e58ba4a85182b7a44890.tar.gz volse-hubzilla-99dcdee67ab3521bd3e5e58ba4a85182b7a44890.tar.bz2 volse-hubzilla-99dcdee67ab3521bd3e5e58ba4a85182b7a44890.zip |
move JSalmon stuff from the data to the meta field in Lib ActivityStreams and some more refinement on storing the raw ap and diaspora data in iconfig
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 8f08e42d3..e78cb4568 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1296,9 +1296,8 @@ class Libzot { } } } - - if ($AS->data['signed_data']) { - IConfig::Set($arr, 'activitypub', 'signed_data', $AS->data['signed_data'], false); + if ($AS->meta['signed_data']) { + IConfig::Set($arr, 'activitypub', 'signed_data', $AS->meta['signed_data'], false); } logger('Activity received: ' . print_r($arr, true), LOGGER_DATA, LOG_DEBUG); @@ -1989,9 +1988,9 @@ class Libzot { $arr['item_verified'] = true; } - if ($AS->data['signed_data']) { - IConfig::Set($arr, 'activitypub', 'signed_data', $AS->data['signed_data'], false); - $j = json_decode($AS->data['signed_data'], true); + if ($AS->meta['signed_data']) { + IConfig::Set($arr, 'activitypub', 'signed_data', $AS->meta['signed_data'], false); + $j = json_decode($AS->meta['signed_data'], true); if ($j) { IConfig::Set($arr, 'activitypub', 'rawmsg', json_encode(JSalmon::unpack($j['data'])), true); } |