Set the admin nickname

master
Bob Mottram 2019-08-10 16:07:02 +01:00
parent 340bbf7d28
commit eaf711672a
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -570,7 +570,7 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \
if not authorized:
loginButton='<br><a href="/login"><button class="loginButton">Login</button></a>'
else:
editProfileStr='<a href="'+actor+'/editprofile"><button class="button"><span>Profile </span></button></a>'
editProfileStr='<a href="'+actor+'/editprofile"><button class="button"><span>Edit </span></button></a>'
linkToTimelineStart='<a href="/users/'+nickname+'/inbox" title="Switch to timeline view" alt="Switch to timeline view">'
linkToTimelineEnd='</a>'
# are there any follow requests?