Required username

master
Bob Mottram 2019-07-03 10:47:09 +01:00
parent 1cd0a3670f
commit 8c590d7402
2 changed files with 2 additions and 4 deletions

View File

@ -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={}

View File

@ -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