Evilness check

main
Bob Mottram 2020-09-25 10:12:36 +00:00
parent 148fb121b3
commit e70158ed51
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@ from session import postJsonString
from session import postImage
from webfinger import webfingerHandle
from httpsig import createSignedHeader
from utils import isEvil
from utils import removeIdEnding
from utils import siteIsActive
from utils import getCachedPostFilename
@ -3320,6 +3321,9 @@ def getPublicPostDomainsBlocked(session, baseDir: str,
continue
# get the domain after the @
domainName = domainName.split('@')[1].strip()
if isEvil(domainName):
blockedDomains.append(domainName)
continue
if domainName in blockedStr:
blockedDomains.append(domainName)