Skip to content

Commit

Permalink
fix: Confirm filtered messages with 204
Browse files Browse the repository at this point in the history
  • Loading branch information
ViMaSter committed Oct 7, 2024
1 parent d87340a commit 1306521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions host.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ export const hostPage = () => {

app.post("/webhook", async (req, res) => {
if (JSON.stringify(req.body).includes("No player-facing changes")) {
return;
return res.status(204).send();
}

if (req.body.action != "published") {
return;
return res.status(204).send();
}

const discordBody = convert(req.body);
Expand Down

0 comments on commit 1306521

Please sign in to comment.