mirror of https://gitlab.com/bashrc2/epicyon
Same name for variables
parent
b65f7722d4
commit
b677b01859
10
daemon.py
10
daemon.py
|
@ -11894,9 +11894,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
isNewPostEndpoint = False
|
isNewPostEndpoint = False
|
||||||
if '/users/' in path and '/new' in path:
|
if '/users/' in path and '/new' in path:
|
||||||
# Various types of new post in the web interface
|
# Various types of new post in the web interface
|
||||||
newPostEnd = getNewPostEndpoints()
|
newPostEndpoints = getNewPostEndpoints()
|
||||||
for postType in newPostEnd:
|
for currPostType in newPostEndpoints:
|
||||||
if path.endswith('/' + postType):
|
if path.endswith('/' + currPostType):
|
||||||
isNewPostEndpoint = True
|
isNewPostEndpoint = True
|
||||||
break
|
break
|
||||||
if isNewPostEndpoint:
|
if isNewPostEndpoint:
|
||||||
|
@ -16697,8 +16697,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.debug)
|
self.server.debug)
|
||||||
|
|
||||||
# receive different types of post created by htmlNewPost
|
# receive different types of post created by htmlNewPost
|
||||||
postTypes = getNewPostEndpoints()
|
newPostEndpoints = getNewPostEndpoints()
|
||||||
for currPostType in postTypes:
|
for currPostType in newPostEndpoints:
|
||||||
if not authorized:
|
if not authorized:
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
print('POST was not authorized')
|
print('POST was not authorized')
|
||||||
|
|
|
@ -292,8 +292,8 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
||||||
path = path.split('?')[0]
|
path = path.split('?')[0]
|
||||||
newPostEndpoints = getNewPostEndpoints()
|
newPostEndpoints = getNewPostEndpoints()
|
||||||
pathBase = path
|
pathBase = path
|
||||||
for newPostReplace in newPostEndpoints:
|
for currPostType in newPostEndpoints:
|
||||||
pathBase = pathBase.replace('/' + newPostReplace, '')
|
pathBase = pathBase.replace('/' + currPostType, '')
|
||||||
|
|
||||||
newPostImageSection = ' <div class="container">'
|
newPostImageSection = ' <div class="container">'
|
||||||
newPostImageSection += \
|
newPostImageSection += \
|
||||||
|
|
Loading…
Reference in New Issue