diff options
author | Mario <mario@mariovavti.com> | 2021-01-17 14:13:31 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-17 14:13:31 +0000 |
commit | 828636847ecdecb1513f19f28b5bb629b04ecec4 (patch) | |
tree | a2cef724c98891aaf4f90421946960582adb5b65 /include/items.php | |
parent | 06b5f7107518c4f1db6579a21c0065f420ccef08 (diff) | |
download | volse-hubzilla-828636847ecdecb1513f19f28b5bb629b04ecec4.tar.gz volse-hubzilla-828636847ecdecb1513f19f28b5bb629b04ecec4.tar.bz2 volse-hubzilla-828636847ecdecb1513f19f28b5bb629b04ecec4.zip |
get_item_elements() check against zot6
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 610727f30..9633ee9bd 100755 --- a/include/items.php +++ b/include/items.php @@ -790,8 +790,8 @@ function get_item_elements($x,$allow_code = false) { dbesc($arr['author_xchan']) ); if($r) { - if($r[0]['xchan_pubkey'] && $r[0]['xchan_network'] === 'zot') { - if(rsa_verify($x['body'],base64url_decode($arr['sig']),$r[0]['xchan_pubkey'])) { + if($r[0]['xchan_pubkey'] && $r[0]['xchan_network'] === 'zot6') { + if(Libzot::verify($x['body'], $arr['sig'], $r[0]['xchan_pubkey'])) { $arr['item_verified'] = 1; } else { |