Commit 4d4bebd0 authored by Haelwenn's avatar Haelwenn
Browse files

Merge branch 'db-inbox-fix' into 'master'

properly create 'relay-list' in db

See merge request !25
parents 8b4ef87e 89990331
......@@ -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