From 411230f48ab4cf4cfd01025fe0f9a98fcdebd6d8 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 12 Apr 2016 19:41:38 -0400 Subject: [PATCH] fix --- contrib/static/mod.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/static/mod.js b/contrib/static/mod.js index ec905fe..c973b44 100644 --- a/contrib/static/mod.js +++ b/contrib/static/mod.js @@ -202,10 +202,11 @@ function nntpchan_mod(mod_action, result_elem) { } } } - ajax.setRequestHeader("X-CSRF-Token", csrf); if (mod_action.name) { + var url = mod_action.name + "/" + target; ajax.open(mod_action.method || "GET", url); + ajax.setRequestHeader("X-CSRF-Token", csrf); var data = mod_action.data; if (data) { ajax.setRequestHeader("Content-type","text/json");