main
Bob Mottram 2021-02-25 15:03:01 +00:00
parent 4545145a9c
commit 126f57c1a9
1 changed files with 3 additions and 14 deletions

View File

@ -4045,6 +4045,9 @@ class PubServer(BaseHTTPRequestHandler):
' image or font could not be saved to ' +
postImageFilename)
if '&previewAvatar=' in postBytes:
print('previewAvatar in postBytes: ' + str(postBytes))
# extract all of the text fields into a dict
fields = \
extractTextFieldsInPOST(postBytes, boundary, debug)
@ -5006,20 +5009,6 @@ class PubServer(BaseHTTPRequestHandler):
self._postToOutbox(updateActorJson,
__version__, nickname)
# preview avatar button on welcome profile screen
if fields.get('previewAvatar'):
print('previewAvatar: ' + str(fields['previewAvatar']))
# prev button on welcome profile screen
if fields.get('prevWelcomeScreen'):
print('prevWelcomeScreen: ' +
str(fields['prevWelcomeScreen']))
# next button on welcome profile screen
if fields.get('nextWelcomeScreen'):
print('nextWelcomeScreen: ' +
str(fields['nextWelcomeScreen']))
# deactivate the account
if fields.get('deactivateThisAccount'):
if fields['deactivateThisAccount'] == 'on':