changeset 31:ab41a84898a9

remove blacklist
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 06 Jul 2020 20:10:24 -0600
parents ee2236919b6a
children 1016a9f81684
files src/nabble/view/web/more/ForumStart.java src/nabble/view/web/more/ForumStart.jtp
diffstat 2 files changed, 0 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/src/nabble/view/web/more/ForumStart.java	Fri Jul 03 15:12:35 2020 -0600
+++ b/src/nabble/view/web/more/ForumStart.java	Mon Jul 06 20:10:24 2020 -0600
@@ -10,7 +10,6 @@
 import nabble.model.ModelHome;
 import nabble.model.Site;
 import nabble.model.User;
-import nabble.model.Init;
 import nabble.naml.compiler.Template;
 import nabble.naml.compiler.TemplatePrintWriter;
 import nabble.naml.namespaces.BasicNamespace;
@@ -186,12 +185,6 @@
 	}
 
 
-	private static final Pattern spammers;
-	static {
-		String s = (String)Init.get("spammers");
-		spammers = s==null ? null : Pattern.compile(s);
-	}
-
 	public static class Save extends HttpServlet {
 
 		private static String get(String name, HttpServletRequest request) {
@@ -239,11 +232,6 @@
 			}
 
 			if (errors.isEmpty()) {
-				if( spammers != null && spammers.matcher(email).find() ) {
-					logger.info("ignoring spammer "+email);
-					return;
-				}
-
 				DbDatabase db = Db.dbGlobal();
 				db.beginTransaction();
 				try {
--- a/src/nabble/view/web/more/ForumStart.jtp	Fri Jul 03 15:12:35 2020 -0600
+++ b/src/nabble/view/web/more/ForumStart.jtp	Mon Jul 06 20:10:24 2020 -0600
@@ -10,7 +10,6 @@
 import nabble.model.ModelHome;
 import nabble.model.Site;
 import nabble.model.User;
-import nabble.model.Init;
 import nabble.naml.compiler.Template;
 import nabble.naml.compiler.TemplatePrintWriter;
 import nabble.naml.namespaces.BasicNamespace;
@@ -243,12 +242,6 @@
 	}
 
 
-	private static final Pattern spammers;
-	static {
-		String s = (String)Init.get("spammers");
-		spammers = s==null ? null : Pattern.compile(s);
-	}
-
 	public static class Save extends HttpServlet {
 
 		private static String get(String name, HttpServletRequest request) {
@@ -296,11 +289,6 @@
 			}
 
 			if (errors.isEmpty()) {
-				if( spammers != null && spammers.matcher(email).find() ) {
-					logger.info("ignoring spammer "+email);
-					return;
-				}
-
 				DbDatabase db = Db.dbGlobal();
 				db.beginTransaction();
 				try {