mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-02-06 06:55:00 +00:00
Update fediverse.py
This commit is contained in:
parent
58e7322555
commit
56c8c62aa6
|
@ -75,7 +75,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)):
|
||||
return False
|
||||
return True
|
||||
|
||||
# check ID with K-Anonymity strategy
|
||||
pattern = r"\b(?:(?<=\/@)|(?<=acct:))([a-zA-Z0-9]{10})\b"
|
||||
|
|
Loading…
Reference in New Issue
Block a user