mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 07:21:46 +00:00
Update fediverse.py
This commit is contained in:
parent
eafb738ad2
commit
3de3620b1f
|
@ -77,7 +77,7 @@ 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.info("[*] BLOCKED MESSAGE: %s" % (text))
|
||||
logger.warning("[*] BLOCKED MESSAGE: %s" % (text))
|
||||
return True
|
||||
|
||||
# check ID with K-Anonymity strategy
|
||||
|
@ -180,7 +180,7 @@ class Fediverse(Extension):
|
|||
)
|
||||
|
||||
if filtered:
|
||||
logger.info("[*] BLOCKED MESSAGE: %s" % (text))
|
||||
logger.warning("[*] BLOCKED MESSAGE: %s" % (text))
|
||||
|
||||
return filtered
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user