Update fediverse.py
Some checks failed
Ruff / ruff (push) Has been cancelled

This commit is contained in:
Namhyeon Go 2024-10-09 04:20:31 +09:00 committed by GitHub
parent 0d543d2da9
commit a7371b1fa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,7 @@ class Fediverse(Extension):
return False
# check if the text contains any of the bad domains
bad_domains = list(filter(None, map(str.strip, bad_domain.split(",")))
bad_domains = list(filter(None, map(str.strip, bad_domain.split(","))))
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("[*] BLOCKED MESSAGE: %s" % (text))