more work on magic auth

This commit is contained in:
friendica
2013-01-21 15:39:05 -08:00
parent 6766f7f829
commit debf7f5f26
5 changed files with 19 additions and 2 deletions

View File

@@ -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;