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";