From 26086ab1d0cca2f76c984ecee3648949cc0d06f1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Jul 2020 14:28:03 +0100 Subject: [PATCH] Don't allow DMs from randos by default --- person.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/person.py b/person.py index 075180ecd..0e6252b49 100644 --- a/person.py +++ b/person.py @@ -439,6 +439,12 @@ def createPerson(baseDir: str, nickname: str, domain: str, port: int, setRole(baseDir, nickname, domain, 'instance', 'delegator') 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'): os.mkdir(baseDir + '/accounts') if not os.path.isdir(baseDir + '/accounts/' + nickname + '@' + domain):