Skip to content
Snippets Groups Projects
Commit 35fc1bed authored by echicken's avatar echicken :chicken:
Browse files

Poll-posting things

parent a2dfd978
No related branches found
No related tags found
No related merge requests found
...@@ -164,9 +164,17 @@ if ((http_request.method === 'GET' || http_request.method === 'POST') && ...@@ -164,9 +164,17 @@ if ((http_request.method === 'GET' || http_request.method === 'POST') &&
if (typeof http_request.query.subject !== 'undefined' && if (typeof http_request.query.subject !== 'undefined' &&
typeof http_request.query.sub !== 'undefined' && typeof http_request.query.sub !== 'undefined' &&
typeof http_request.query.votes !== 'undefined' && typeof http_request.query.votes !== 'undefined' &&
typeof http_request.query.results !== 'undefined' &&
typeof http_request.query.answer !== 'undefined' typeof http_request.query.answer !== 'undefined'
) { ) {
reply = "barf"; reply.success = postPoll(
http_request.query.sub[0],
http_request.query.subject[0],
http_request.query.votes[0],
http_request.query.results[0],
http_request.query.answer,
http_request.query.comment || []
);
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment