mirror of https://gitlab.com/bashrc2/epicyon
Ensure that default settings are preserved during the welcome screen sequence
parent
19908a73c4
commit
786a3f79e3
16
daemon.py
16
daemon.py
|
@ -4717,6 +4717,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
nickname, domain)
|
nickname, domain)
|
||||||
|
|
||||||
# approve followers
|
# approve followers
|
||||||
|
if checkNameAndBio:
|
||||||
|
# Default setting created via the welcome screen
|
||||||
|
actorJson['manuallyApprovesFollowers'] = True
|
||||||
|
actorChanged = True
|
||||||
|
else:
|
||||||
approveFollowers = False
|
approveFollowers = False
|
||||||
if fields.get('approveFollowers'):
|
if fields.get('approveFollowers'):
|
||||||
if fields['approveFollowers'] == 'on':
|
if fields['approveFollowers'] == 'on':
|
||||||
|
@ -4773,6 +4778,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
baseDir + '/accounts/' + \
|
baseDir + '/accounts/' + \
|
||||||
nickname + '@' + domain + \
|
nickname + '@' + domain + \
|
||||||
'/.followDMs'
|
'/.followDMs'
|
||||||
|
if checkNameAndBio:
|
||||||
|
# initial default setting created via
|
||||||
|
# the welcome screen
|
||||||
|
with open(followDMsFilename, 'w+') as fFile:
|
||||||
|
fFile.write('\n')
|
||||||
|
else:
|
||||||
followDMsActive = False
|
followDMsActive = False
|
||||||
if fields.get('followDMs'):
|
if fields.get('followDMs'):
|
||||||
if fields['followDMs'] == 'on':
|
if fields['followDMs'] == 'on':
|
||||||
|
@ -4822,6 +4833,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
os.remove(hideLikeButtonFile)
|
os.remove(hideLikeButtonFile)
|
||||||
|
|
||||||
# notify about new Likes
|
# notify about new Likes
|
||||||
|
if checkNameAndBio:
|
||||||
|
# default setting from welcome screen
|
||||||
|
with open(notifyLikesFilename, 'w+') as rFile:
|
||||||
|
rFile.write('\n')
|
||||||
|
else:
|
||||||
notifyLikesActive = False
|
notifyLikesActive = False
|
||||||
if fields.get('notifyLikes'):
|
if fields.get('notifyLikes'):
|
||||||
if fields['notifyLikes'] == 'on' and \
|
if fields['notifyLikes'] == 'on' and \
|
||||||
|
|
Loading…
Reference in New Issue