aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php
index 6fe202aa8..f978971ea 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -52,15 +52,16 @@ function zot_sign(&$item,$identity) {
// Given an item and an identity, verify the signature.
function zot_verify(&$item,$identity) {
- return rsa_verify($item[signed'],base64url_decode($item['signature']),$identity['pubkey']);
+ return rsa_verify($item['signed'],base64url_decode($item['signature']),$identity['pubkey']);
}
function zot_notify($entity,$url) {
$x = z_post_url($url, array(
- 'zot_uid' => $entity['entity_global_id'],
- 'callback' => z_root() . '/zot',
+ 'type' => 'notify',
+ 'guid' => $entity['entity_global_id'],
+ 'callback' => z_root() . '/post',
'spec' => ZOT_REVISION)
);
return($x);