Improve handling of evil

This commit is contained in:
bashrc committed 2019-08-31 14:26:59 +01:00
1 parent d55be4d497
commit 52ba22e7ad
1 file changed
+4 -2
+4 -2
View File
@@ -51,8 +51,10 @@ def domainPermitted(domain: str, federationList: []):
return False
def urlPermitted(url: str, federationList: [],capability: str):
if url.endswith('gab.com') or url.endswith('gabfed.com'):
return False
evilDomains=['gab.com','gabfed.com','spinster.xyz']
for concentratedEvil in evilDomains:
if url.endswith(concentratedEvil):
return False
if len(federationList)==0:
return True
for domain in federationList: