From a016924f6401a44906e4e35acc5d5e100ad0c1a7 Mon Sep 17 00:00:00 2001 From: chronicoffeeater Date: Fri, 19 Jul 2024 15:42:58 +0300 Subject: [PATCH] update view count minimum + specific message --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index e5e43ed..7df466b 100644 --- a/server.js +++ b/server.js @@ -120,7 +120,7 @@ app.post("/add", async function (req, res) { }); if (validateResult == 7) return res.render("rejected.ejs", { - err: "it must already have a few views.", + err: "the minimum view count is 10 (in order to prevent abuse).", }); res.render("error.ejs", { @@ -151,7 +151,7 @@ async function validateProject(projStr) { return 6; } - if (x.stats.views < 15) { + if (x.stats.views < 9) { return 7; }