From 68df3287d74b519011fbe881e907d9470ab8be6b Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 25 Jun 2022 03:32:19 +0400 Subject: [PATCH] Now links aren't being deleted. But still are manually moderated. --- homepage/guestbook.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/homepage/guestbook.js b/homepage/guestbook.js index bfd755e..04d73a1 100644 --- a/homepage/guestbook.js +++ b/homepage/guestbook.js @@ -65,11 +65,6 @@ exports.addPost = async (post) => { if (post.message === undefined || post.message === "") return reject("empty message"); - if (post.message.includes("")) - return reject("links are not allowed"); - if (post.message.match(/(https?)?(:\/\/)?\S+( +)?(\.|\(?dot\)?)( +)?\S+(( +)?\/.+)?/gmi)) - return reject("links are not allowed"); - if (post.name === undefined || post.name === "") post.name = "Anonymous";