mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-03-12 00:45:16 +00:00
Update fediverse.py
This commit is contained in:
parent
a376b8084d
commit
539b7c3b58
|
@ -75,7 +75,8 @@ class Fediverse(Extension):
|
||||||
|
|
||||||
# check if the text contains any of the bad domains
|
# 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)):
|
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
|
return True
|
||||||
|
|
||||||
# check ID with K-Anonymity strategy
|
# check ID with K-Anonymity strategy
|
||||||
|
|
Loading…
Reference in New Issue
Block a user