Update fediverse.py

This commit is contained in:
Namhyeon Go 2024-10-09 03:11:52 +09:00 committed by GitHub
parent a376b8084d
commit 539b7c3b58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,8 @@ class Fediverse(Extension):
# check if the text contains any of the bad domains
if bool(re.search(r"https://(" + "|".join(re.escape(domain) for domain in bad_domains) + ")", text)):
logger.warning("[*] Found a bad reputation domain")
logger.warning("[*] Found a bad reputation domain.")
logger.info("[*] BLOCKED MESSAGE: %s" % (text))
return True
# check ID with K-Anonymity strategy