diff options
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php index 0290d1d46..fc1241ff2 100644 --- a/include/zot.php +++ b/include/zot.php @@ -101,6 +101,12 @@ function zot_build_packet($channel,$type = 'notify',$recipients = null, $remote_ 'version' => ZOT_REVISION ); + // These fields are present when using magic auth + + if(array_key_exists('token',$channel)) { + $data['sender']['token'] = $channel['token']; + $data['sender']['token_sig'] = $channel['token_sig']; + } if($recipients) $data['recipients'] = $recipients; |