From 9fd2c2dd8ac6a5b015a30eb0508d387c15df9575 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 11 Nov 2012 19:12:20 -0800 Subject: hush-hush ultra top-secret mode --- include/zot.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index 90b91ff6e..b503f3a55 100644 --- a/include/zot.php +++ b/include/zot.php @@ -59,8 +59,9 @@ function zot_verify(&$item,$identity) { -function zot_notify($channel,$url,$type = 'notify',$recipients = null) { - $x = z_post_url($url, array( +function zot_notify($channel,$url,$type = 'notify',$recipients = null, $remote_key = null) { + + $params = array( 'type' => $type, 'sender' => json_encode(array( 'guid' => $channel['channel_guid'], @@ -72,6 +73,14 @@ function zot_notify($channel,$url,$type = 'notify',$recipients = null) { 'callback' => '/post', 'version' => ZOT_REVISION) ); + + // Hush-hush ultra top-secret mode + + if($remote_key) { + $params = aes_encapsulate($params,$remote_key); + } + + $x = z_post_url($url,$prams); return($x); } -- cgit v1.2.3