mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Increase maximum posts
							parent
							
								
									78fcf1618f
								
							
						
					
					
						commit
						91534ba302
					
				| 
						 | 
				
			
			@ -3635,7 +3635,7 @@ def runDaemon(projectVersion, \
 | 
			
		|||
    httpd.maxPostLength=1024*1024*30
 | 
			
		||||
    httpd.maxMediaSize=httpd.maxPostLength
 | 
			
		||||
    httpd.maxMessageLength=5000
 | 
			
		||||
    httpd.maxPostsInBox=256
 | 
			
		||||
    httpd.maxPostsInBox=1024
 | 
			
		||||
    httpd.domain=domain
 | 
			
		||||
    httpd.port=port
 | 
			
		||||
    httpd.domainFull=domain
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -964,7 +964,7 @@ if args.changepassword:
 | 
			
		|||
archiveWeeks=4
 | 
			
		||||
if args.archiveWeeks:
 | 
			
		||||
    archiveWeeks=args.archiveWeeks
 | 
			
		||||
archiveMaxPosts=256
 | 
			
		||||
archiveMaxPosts=1024
 | 
			
		||||
if args.archiveMaxPosts:
 | 
			
		||||
    archiveMaxPosts=args.archiveMaxPosts
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										6
									
								
								posts.py
								
								
								
								
							
							
						
						
									
										6
									
								
								posts.py
								
								
								
								
							| 
						 | 
				
			
			@ -1857,7 +1857,7 @@ def createBoxBase(baseDir: str,boxname: str, \
 | 
			
		|||
        return boxHeader
 | 
			
		||||
    return boxItems
 | 
			
		||||
 | 
			
		||||
def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,maxPostsInBox=256):
 | 
			
		||||
def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,maxPostsInBox=1024):
 | 
			
		||||
    """Thread used to expire actors from the cache and archive old posts
 | 
			
		||||
    """
 | 
			
		||||
    while True:
 | 
			
		||||
| 
						 | 
				
			
			@ -1866,7 +1866,7 @@ def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,max
 | 
			
		|||
        expirePersonCache(basedir,personCache)
 | 
			
		||||
        archivePosts(baseDir,httpPrefix,archiveDir,maxPostsInBox)
 | 
			
		||||
 | 
			
		||||
def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=256) -> None:
 | 
			
		||||
def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=1024) -> None:
 | 
			
		||||
    """Archives posts for all accounts
 | 
			
		||||
    """
 | 
			
		||||
    if archiveDir:
 | 
			
		||||
| 
						 | 
				
			
			@ -1900,7 +1900,7 @@ def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=256)
 | 
			
		|||
                                      maxPostsInBox)
 | 
			
		||||
 | 
			
		||||
def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str, \
 | 
			
		||||
                          boxname: str,archiveDir: str,maxPostsInBox=256) -> None:
 | 
			
		||||
                          boxname: str,archiveDir: str,maxPostsInBox=1024) -> None:
 | 
			
		||||
    """Retain a maximum number of posts within the given box
 | 
			
		||||
    Move any others to an archive directory
 | 
			
		||||
    """
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue