mirror of https://gitlab.com/bashrc2/epicyon
Only copy default avatar if it exists
parent
4ca83d24c0
commit
314a3aa047
|
@ -232,6 +232,7 @@ def createPerson(baseDir: str,nickname: str,domain: str,port: int, \
|
||||||
setRole(baseDir,nickname,domain,'instance','admin')
|
setRole(baseDir,nickname,domain,'instance','admin')
|
||||||
setRole(baseDir,nickname,domain,'instance','moderator')
|
setRole(baseDir,nickname,domain,'instance','moderator')
|
||||||
setRole(baseDir,nickname,domain,'instance','delegator')
|
setRole(baseDir,nickname,domain,'instance','delegator')
|
||||||
|
if os.path.isfile(baseDir+'/img/default-avatar.png'):
|
||||||
copyfile(baseDir+'/img/default-avatar.png',baseDir+'/accounts/'+nickname+'@'+domain+'/avatar.png')
|
copyfile(baseDir+'/img/default-avatar.png',baseDir+'/accounts/'+nickname+'@'+domain+'/avatar.png')
|
||||||
return privateKeyPem,publicKeyPem,newPerson,webfingerEndpoint
|
return privateKeyPem,publicKeyPem,newPerson,webfingerEndpoint
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue