[manual] send_message: Rename recipient/stream fields to 'to'.

This commit changes APIs and requires and update of all zephyr
mirroring bots to deploy properly.

(imported from commit 2672d2d07269379f7a865644aaeb6796d54183e1)
This commit is contained in:
Tim Abbott
2012-11-14 17:21:46 -05:00
parent 6f10d27f3b
commit 411a7f6b4f
11 changed files with 28 additions and 29 deletions

View File

@@ -52,10 +52,13 @@ function send_message() {
var request = {client: 'website',
type: compose.composing(),
stream: compose.stream_name(),
subject: compose.subject(),
recipient: JSON.stringify(recipients),
content: compose.message_content()};
if (request.type === "private") {
request.to = JSON.stringify(recipients);
} else {
request.to = compose.stream_name();
}
$.ajax({
dataType: 'json', // This seems to be ignored. We still get back an xhr.