Now links aren't being deleted. But still are manually moderated.
This commit is contained in:
parent
228fc885ca
commit
68df3287d7
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user