Notify about likes by default

main
Bob Mottram 2020-08-27 10:23:21 +01:00
parent 8ff510e791
commit 6489c6f625
1 changed files with 6 additions and 0 deletions

View File

@ -460,6 +460,12 @@ def createPerson(baseDir: str, nickname: str, domain: str, port: int,
with open(followDMsFilename, "w") as fFile:
fFile.write('\n')
# notify when posts are liked
notifyLikesFilename = baseDir + '/accounts/' + \
nickname + '@' + domain + '/.notifyLikes'
with open(notifyLikesFilename, "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):