For private messages, use hush-hush ultra top-secret mode by default

This commit is contained in:
friendica
2012-11-18 19:19:16 -08:00
parent 8611c3da68
commit db77309bc3
3 changed files with 14 additions and 9 deletions

View File

@@ -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) {