webhook is now affected by security setting

This commit is contained in:
Mestima 2020-09-03 03:42:45 +03:00
parent 0a4d305c19
commit 9f6d59424c
No known key found for this signature in database
GPG Key ID: 30B59EB1D7F18807

View File

@ -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);