mirror of https://gitlab.com/bashrc2/epicyon
Don't allow DMs from randos by default
parent
9bc6f1691e
commit
26086ab1d0
|
@ -439,6 +439,12 @@ def createPerson(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
setRole(baseDir, nickname, domain, 'instance', 'delegator')
|
setRole(baseDir, nickname, domain, 'instance', 'delegator')
|
||||||
setConfigParam(baseDir, 'admin', nickname)
|
setConfigParam(baseDir, 'admin', nickname)
|
||||||
|
|
||||||
|
if manualFollowerApproval:
|
||||||
|
followDMsFilename = baseDir + '/accounts/' + \
|
||||||
|
nickname + '@' + domain + '/.followDMs'
|
||||||
|
with open(followDMsFilename, "w") as fFile:
|
||||||
|
fFile.write('\n')
|
||||||
|
|
||||||
if not os.path.isdir(baseDir + '/accounts'):
|
if not os.path.isdir(baseDir + '/accounts'):
|
||||||
os.mkdir(baseDir + '/accounts')
|
os.mkdir(baseDir + '/accounts')
|
||||||
if not os.path.isdir(baseDir + '/accounts/' + nickname + '@' + domain):
|
if not os.path.isdir(baseDir + '/accounts/' + nickname + '@' + domain):
|
||||||
|
|
Loading…
Reference in New Issue