blacklist knzk.me (rip)

This commit is contained in:
Lynne 2019-07-01 11:21:08 +10:00
parent de06c584e6
commit 42b23091d9
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ scopes = ["read:statuses", "read:accounts", "read:follows", "write:statuses", "r
cfg = { cfg = {
"site": "https://botsin.space", "site": "https://botsin.space",
"cw": None, "cw": None,
"instance_blacklist": ["bofa.lol", "witches.town"], "instance_blacklist": ["bofa.lol", "witches.town", "knzk.me"],
"learn_from_cw": False, "learn_from_cw": False,
"mention_handling": 1, "mention_handling": 1,
"max_thread_length": 15 "max_thread_length": 15
@ -123,7 +123,7 @@ for f in following:
continue continue
try: try:
# 1. download host-meta to find webfing URL # 1. download host-meta to find webfinger URL
r = requests.get("https://{}/.well-known/host-meta".format(instance), timeout=10) r = requests.get("https://{}/.well-known/host-meta".format(instance), timeout=10)
# 2. use webfinger to find user's info page # 2. use webfinger to find user's info page
uri = patterns["uri"].search(r.text).group(1) uri = patterns["uri"].search(r.text).group(1)