From e70158ed51324fe7f5384ee473aae617604c474e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 25 Sep 2020 10:12:36 +0000 Subject: [PATCH] Evilness check --- posts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/posts.py b/posts.py index 6fb17239..8f735516 100644 --- a/posts.py +++ b/posts.py @@ -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)