Skip to content

Commit

Permalink
update view count minimum + specific message
Browse files Browse the repository at this point in the history
  • Loading branch information
chronicoffeeater authored Jul 19, 2024
1 parent 439afcd commit a016924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down Expand Up @@ -151,7 +151,7 @@ async function validateProject(projStr) {
return 6;
}

if (x.stats.views < 15) {
if (x.stats.views < 9) {
return 7;
}

Expand Down

0 comments on commit a016924

Please sign in to comment.