From 8c590d7402959f2406a77fe655ae1f51f74ca6f4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 3 Jul 2019 10:47:09 +0100 Subject: [PATCH] Required username --- epicyon.py | 2 -- person.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/epicyon.py b/epicyon.py index af7535965..5f8e8ec80 100644 --- a/epicyon.py +++ b/epicyon.py @@ -86,8 +86,6 @@ if baseDir.endswith('/'): federationList=[] if args.federationList: federationList=args.federationList.copy() -print(baseDir) -sys.exit() session = createSession(domain,port,useTor) personCache={} diff --git a/person.py b/person.py index 07b609df3..024b5ee1f 100644 --- a/person.py +++ b/person.py @@ -69,7 +69,7 @@ def createPerson(baseDir: str,nickname: str,domain: str,port: int, \ 'manuallyApprovesFollowers': False, 'name': nickname, 'outbox': prefix+'://'+domain+'/users/'+nickname+'/outbox', - 'preferredNickname': ''+nickname, + 'preferredUsername': ''+nickname, 'publicKey': {'id': prefix+'://'+domain+'/users/'+nickname+'/main-key', 'owner': prefix+'://'+domain+'/users/'+nickname, 'publicKeyPem': publicKeyPem, @@ -220,7 +220,7 @@ def setPreferredNickname(baseDir: str,nickname: str, domain: str, \ personJson=commentjson.load(fp) if not personJson: return False - personJson['preferredNickname']=preferredName + personJson['preferredUsername']=preferredName with open(filename, 'w') as fp: commentjson.dump(personJson, fp, indent=4, sort_keys=False) return True