Skip to content
Snippets Groups Projects
Commit d00ccb78 authored by Gandalf's avatar Gandalf
Browse files

Merge branch 'update-blacklist-url' into 'autoclave'

Update Global Blacklist URL

See merge request hive-group/hivemind!1
parents e21a4a43 9e5364fc
No related branches found
No related tags found
1 merge request!1Update Global Blacklist URL
......@@ -40,7 +40,7 @@ class Mutes:
def load(self):
"""Reload all accounts from irredeemables endpoint and global lists."""
self.accounts = set(_read_url(self.url).decode('utf8').split())
jsn = _read_url('http://blacklist.usesteem.com/blacklists')
jsn = _read_url('https://hive-blacklist.herokuapp.com/blacklists')
self.blist = set(json.loads(jsn))
self.blist_map = dict()
log.warning("%d muted, %d blacklisted", len(self.accounts), len(self.blist))
......@@ -64,7 +64,7 @@ class Mutes:
if name not in inst.blist_map:
out = []
if name in inst.blist:
url = 'http://blacklist.usesteem.com/user/' + name
url = 'https://hive-blacklist.herokuapp.com/user/' + name
lists = json.loads(_read_url(url))
out.extend(lists['blacklisted'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment