Now links aren't being deleted. But still are manually moderated.

This commit is contained in:
Alexander Andreev 2022-06-25 03:32:19 +04:00
parent 228fc885ca
commit 68df3287d7
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
1 changed files with 0 additions and 5 deletions

View File

@ -65,11 +65,6 @@ exports.addPost = async (post) => {
if (post.message === undefined || post.message === "")
return reject("empty message");
if (post.message.includes("</a>"))
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";