changeset 50:806d3297f92b

allow custom nabble domains
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 27 Jun 2021 18:26:58 -0600
parents 219206026b57
children f88ed76ca757
files src/nabble/view/web/forum/ChangeDomainName.java src/nabble/view/web/forum/ChangeDomainName.jtp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/nabble/view/web/forum/ChangeDomainName.java	Sun Jun 27 14:44:56 2021 -0600
+++ b/src/nabble/view/web/forum/ChangeDomainName.java	Sun Jun 27 18:26:58 2021 -0600
@@ -68,7 +68,7 @@
 					site.setCustomDomain(null);
 				else {
 					domainName = domainName.trim();
-					if (domainName.length() == 0 || domainName.endsWith(".nabble.com") || domainName.equals(InetAddress.getLocalHost().getHostAddress()))
+					if (domainName.length() == 0 || domainName.equals(InetAddress.getLocalHost().getHostAddress()))
 						throw ModelException.newInstance("invalid_domain", "Please enter a valid domain name for your application.");
 					Long currentSiteId = ModelHome.getSiteIdFromDomain(domainName);
 					if (currentSiteId != null && !currentSiteId.equals(site.getId()))
--- a/src/nabble/view/web/forum/ChangeDomainName.jtp	Sun Jun 27 14:44:56 2021 -0600
+++ b/src/nabble/view/web/forum/ChangeDomainName.jtp	Sun Jun 27 18:26:58 2021 -0600
@@ -68,7 +68,7 @@
 					site.setCustomDomain(null);
 				else {
 					domainName = domainName.trim();
-					if (domainName.length() == 0 || domainName.endsWith(".nabble.com") || domainName.equals(InetAddress.getLocalHost().getHostAddress()))
+					if (domainName.length() == 0 || domainName.equals(InetAddress.getLocalHost().getHostAddress()))
 						throw ModelException.newInstance("invalid_domain", "Please enter a valid domain name for your application.");
 					Long currentSiteId = ModelHome.getSiteIdFromDomain(domainName);
 					if (currentSiteId != null && !currentSiteId.equals(site.getId()))