forked from indymedia/epicyon
login not logo
parent
672a36d038
commit
3ed3d8e61c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue