Commit 89990331 authored by Izalia Mae's avatar Izalia Mae
Browse files

properly create 'relay-list' in db

parent a15d7342
......@@ -24,11 +24,11 @@ following = DATABASE.get('relay-list', [])
for inbox in following:
if urllib.parse.urlsplit(inbox).hostname in AP_CONFIG['blocked_instances']:
DATABASE['relay-list'] = following
elif AP_CONFIG['whitelist_enabled'] is True and urllib.parse.urlsplit(inbox).hostname not in AP_CONFIG['whitelist']:
DATABASE['relay-list'] = following
DATABASE['relay-list'] = following
if 'actors' in DATABASE:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment