From 8ec06c612bf4ab6106f4f4b99ac8804276aedd8f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 5 Oct 2020 19:26:38 +0100 Subject: [PATCH] The trusted newswire accounts can include nickname only, rather than nick@domain --- newswire.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newswire.py b/newswire.py index 54df7ea9d..bda5e8b06 100644 --- a/newswire.py +++ b/newswire.py @@ -239,7 +239,8 @@ def addLocalBlogsToNewswire(baseDir: str, newswire: {}, if 'inbox@' in handle: continue if handle not in newswireTrusted: - continue + if handle.split('@')[0] + '\n' not in newswireTrusted: + continue accountDir = os.path.join(baseDir + '/accounts', handle) # has this account been suspended?