The trusted newswire accounts can include nickname only, rather than nick@domain

merge-requests/8/head
Bob Mottram 2020-10-05 19:26:38 +01:00
parent 686aa0ec6a
commit 8ec06c612b
1 changed files with 2 additions and 1 deletions

View File

@ -239,6 +239,7 @@ def addLocalBlogsToNewswire(baseDir: str, newswire: {},
if 'inbox@' in handle:
continue
if handle not in newswireTrusted:
if handle.split('@')[0] + '\n' not in newswireTrusted:
continue
accountDir = os.path.join(baseDir + '/accounts', handle)