login not logo

main
Bob Mottram 2019-11-13 21:24:34 +00:00
parent 672a36d038
commit 3ed3d8e61c
1 changed files with 1 additions and 4 deletions

View File

@ -3242,7 +3242,7 @@ class PubServer(BaseHTTPRequestHandler):
nickname+'@'+self.server.domain+'/'+mType+'.temp'
else:
filenameBase= \
self.server.baseDir+'/accounts/logo.temp'
self.server.baseDir+'/accounts/login.temp'
filename,attachmentMediaType= \
saveMediaInFormPOST(mediaBytes,self.server.debug,filenameBase)
@ -3257,9 +3257,6 @@ class PubServer(BaseHTTPRequestHandler):
if self.server.debug:
print('DEBUG: POST '+mType+' media removing metadata')
postImageFilename=filename.replace('.temp','')
if mType=='instanceLogo':
filename=self.server.baseDir+'/accounts/logo.temp.png'
postImageFilename=self.server.baseDir+'/accounts/logo.png'
removeMetaData(filename,postImageFilename)
if os.path.isfile(postImageFilename):
print('profile update POST '+mType+' image saved to '+postImageFilename)