From 89990331d53ada52ada2b295061382bd5d4d9a1d Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Sun, 22 Nov 2020 00:50:57 -0500 Subject: [PATCH] properly create 'relay-list' in db --- relay/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/database.py b/relay/database.py index 299cbb8..03e2719 100644 --- a/relay/database.py +++ b/relay/database.py @@ -24,11 +24,11 @@ following = DATABASE.get('relay-list', []) for inbox in following: if urllib.parse.urlsplit(inbox).hostname in AP_CONFIG['blocked_instances']: following.remove(inbox) - DATABASE['relay-list'] = following elif AP_CONFIG['whitelist_enabled'] is True and urllib.parse.urlsplit(inbox).hostname not in AP_CONFIG['whitelist']: following.remove(inbox) - DATABASE['relay-list'] = following + +DATABASE['relay-list'] = following if 'actors' in DATABASE: DATABASE.pop('actors')