From 9f6d59424ce71d4707c0197becba36f8b8e78472 Mon Sep 17 00:00:00 2001 From: Mestima Date: Thu, 3 Sep 2020 03:42:45 +0300 Subject: [PATCH] webhook is now affected by `security` setting --- web/nodejs/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/nodejs/index.ts b/web/nodejs/index.ts index 71d3b6c..7987b40 100644 --- a/web/nodejs/index.ts +++ b/web/nodejs/index.ts @@ -18,7 +18,7 @@ app.post("/send", (req, res) => { const content: any = req.query.content; const postWebhook: any = req.query.webhook; - if (webhook != postWebhook) { + if (security && webhook != postWebhook) { const err = `error: unknown webhook '${postWebhook}'`; if (debug) { console.log(err);