forked from indymedia/epicyon
url format
parent
e31b227066
commit
9027d68ab7
10
daemon.py
10
daemon.py
|
@ -974,11 +974,15 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
# full screen images shown from the media timeline
|
# full screen images shown from the media timeline
|
||||||
if self.path.startswith('/fullscreen?'):
|
if self.path.startswith('/fullscreen?'):
|
||||||
fullscreenImageStr=self.path.split('?')
|
fullscreenImageStr=self.path.split('?img=')
|
||||||
imageFilename=fullscreenImageStr[1]
|
imageFilename=fullscreenImageStr[1]
|
||||||
|
if '?' in imageFilename:
|
||||||
|
imageFilename=imageFilename.split('?')[0]
|
||||||
imageDescription=None
|
imageDescription=None
|
||||||
if len(fullscreenImageStr)>2:
|
if '?desc=' in self.path:
|
||||||
imageDescription=fullscreenImageStr[2]
|
imageDescription=self.path.split('?desc=')
|
||||||
|
if '?' in imageDescription:
|
||||||
|
imageDescription=imageDescription.split('?')[0]
|
||||||
msg=htmlFullScreenImage(imageFilename,imageDescription)
|
msg=htmlFullScreenImage(imageFilename,imageDescription)
|
||||||
self._login_headers('text/html',len(msg))
|
self._login_headers('text/html',len(msg))
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
|
|
|
@ -1922,7 +1922,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
|
||||||
if boxName=='tlmedia':
|
if boxName=='tlmedia':
|
||||||
galleryStr+= \
|
galleryStr+= \
|
||||||
'<div class="gallery">\n' \
|
'<div class="gallery">\n' \
|
||||||
' <a href="/fullscreen?'+attach['url']+'?'+imageDescription+'">\n' \
|
' <a href="/fullscreen?img='+attach['url']+'?desc='+imageDescription+'">\n' \
|
||||||
' <img loading="lazy" src="'+attach['url']+'" alt="'+imageDescription+'" title="'+imageDescription+'" width="600" height="400">\n' \
|
' <img loading="lazy" src="'+attach['url']+'" alt="'+imageDescription+'" title="'+imageDescription+'" width="600" height="400">\n' \
|
||||||
' </a>\n</div>\n'
|
' </a>\n</div>\n'
|
||||||
attachmentStr+= \
|
attachmentStr+= \
|
||||||
|
|
Loading…
Reference in New Issue