From eaf711672a2fdca8a358a1e1979cc857c5a966a6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 10 Aug 2019 16:07:02 +0100 Subject: [PATCH] Set the admin nickname --- person.py | 1 + webinterface.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/person.py b/person.py index 0d45c6dd..767a5bfa 100644 --- a/person.py +++ b/person.py @@ -266,6 +266,7 @@ def createPerson(baseDir: str,nickname: str,domain: str,port: int, \ setRole(baseDir,nickname,domain,'instance','admin') setRole(baseDir,nickname,domain,'instance','moderator') setRole(baseDir,nickname,domain,'instance','delegator') + setConfigParam(baseDir,'admin',nickname) if not os.path.isdir(baseDir+'/accounts'): os.mkdir(baseDir+'/accounts') diff --git a/webinterface.py b/webinterface.py index 00a8bd0e..c7183178 100644 --- a/webinterface.py +++ b/webinterface.py @@ -570,7 +570,7 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \ if not authorized: loginButton='
' else: - editProfileStr='' + editProfileStr='' linkToTimelineStart='' linkToTimelineEnd='' # are there any follow requests?