aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-18 19:19:16 -0800
committerfriendica <info@friendica.com>2012-11-18 19:19:16 -0800
commitdb77309bc399669c5c98f4fac99f2d5f96cfbaeb (patch)
tree0c36049a0014afcc89d6b30a4a0a556d896afa61 /include/zot.php
parent8611c3da683b9d3aa742559c192b0f9237256431 (diff)
downloadvolse-hubzilla-db77309bc399669c5c98f4fac99f2d5f96cfbaeb.tar.gz
volse-hubzilla-db77309bc399669c5c98f4fac99f2d5f96cfbaeb.tar.bz2
volse-hubzilla-db77309bc399669c5c98f4fac99f2d5f96cfbaeb.zip
For private messages, use hush-hush ultra top-secret mode by default
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index b313e99a9..c332579c1 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -85,7 +85,7 @@ function zot_notify($channel,$url,$type = 'notify',$recipients = null, $remote_k
*
*/
-function zot_build_packet($channel,$type = 'notify',$recipients = null, $remote_key = null) {
+function zot_build_packet($channel,$type = 'notify',$recipients = null, $remote_key = null, $secret = null) {
$data = array(
'type' => $type,
@@ -103,6 +103,9 @@ function zot_build_packet($channel,$type = 'notify',$recipients = null, $remote_
if($recipients)
$data['recipients'] = $recipients;
+ if($secret)
+ $data['secret'] = $secret;
+
// Hush-hush ultra top-secret mode
if($remote_key) {