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
 | 
			
		||||
        if '/users/' in path and '/new' in path:
 | 
			
		||||
            # Various types of new post in the web interface
 | 
			
		||||
            newPostEnd = getNewPostEndpoints()
 | 
			
		||||
            for postType in newPostEnd:
 | 
			
		||||
                if path.endswith('/' + postType):
 | 
			
		||||
            newPostEndpoints = getNewPostEndpoints()
 | 
			
		||||
            for currPostType in newPostEndpoints:
 | 
			
		||||
                if path.endswith('/' + currPostType):
 | 
			
		||||
                    isNewPostEndpoint = True
 | 
			
		||||
                    break
 | 
			
		||||
        if isNewPostEndpoint:
 | 
			
		||||
| 
						 | 
				
			
			@ -16697,8 +16697,8 @@ class PubServer(BaseHTTPRequestHandler):
 | 
			
		|||
                           self.server.debug)
 | 
			
		||||
 | 
			
		||||
        # receive different types of post created by htmlNewPost
 | 
			
		||||
        postTypes = getNewPostEndpoints()
 | 
			
		||||
        for currPostType in postTypes:
 | 
			
		||||
        newPostEndpoints = getNewPostEndpoints()
 | 
			
		||||
        for currPostType in newPostEndpoints:
 | 
			
		||||
            if not authorized:
 | 
			
		||||
                if self.server.debug:
 | 
			
		||||
                    print('POST was not authorized')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -292,8 +292,8 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
 | 
			
		|||
        path = path.split('?')[0]
 | 
			
		||||
    newPostEndpoints = getNewPostEndpoints()
 | 
			
		||||
    pathBase = path
 | 
			
		||||
    for newPostReplace in newPostEndpoints:
 | 
			
		||||
        pathBase = pathBase.replace('/' + newPostReplace, '')
 | 
			
		||||
    for currPostType in newPostEndpoints:
 | 
			
		||||
        pathBase = pathBase.replace('/' + currPostType, '')
 | 
			
		||||
 | 
			
		||||
    newPostImageSection = '    <div class="container">'
 | 
			
		||||
    newPostImageSection += \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue