mirror of
https://github.com/Mestima/GM-Discord.git
synced 2025-05-05 22:00:14 +00:00
webhook is now affected by security
setting
This commit is contained in:
parent
0a4d305c19
commit
9f6d59424c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user