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

Added block-sender call

parent 235d1044
Branches
Tags
No related merge requests found
......@@ -12,9 +12,7 @@ load(settings.web_lib + 'forum.js');
var reply = {};
// There must be an API call, and the user must not be a guest or unknown
if ((http_request.method === 'GET' || http_request.method === 'POST') &&
typeof http_request.query.call !== 'undefined'
) {
if (http_request.query.call !== undefined && (http_request.method === 'GET' || http_request.method === 'POST')) {
var handled = false;
......@@ -152,6 +150,14 @@ if ((http_request.method === 'GET' || http_request.method === 'POST') &&
}
break;
case 'block-sender':
if (user.is_sysop) {
if (http_request.query.from) addTwit(decodeURIComponent(http_request.query.from[0]));
if (http_request.query.from_net) addTwit(decodeURIComponent(http_request.query.from_net[0]));
reply.err = null;
}
break;
default:
handled = false;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment